Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 15579002: Implement transform/clip support for Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Turn on fuzzy comparator for new SoftwareRenderer tests Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 LayerList update_list; 708 LayerList update_list;
709 { 709 {
710 UpdateHudLayer(); 710 UpdateHudLayer();
711 711
712 Layer* root_scroll = FindFirstScrollableLayer(root_layer); 712 Layer* root_scroll = FindFirstScrollableLayer(root_layer);
713 713
714 TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers::CalcDrawProps"); 714 TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers::CalcDrawProps");
715 LayerTreeHostCommon::CalculateDrawProperties( 715 LayerTreeHostCommon::CalculateDrawProperties(
716 root_layer, 716 root_layer,
717 device_viewport_size(), 717 device_viewport_size(),
718 gfx::Transform(),
718 device_scale_factor_, 719 device_scale_factor_,
719 page_scale_factor_, 720 page_scale_factor_,
720 root_scroll, 721 root_scroll,
721 GetRendererCapabilities().max_texture_size, 722 GetRendererCapabilities().max_texture_size,
722 settings_.can_use_lcd_text, 723 settings_.can_use_lcd_text,
723 settings_.layer_transforms_should_scale_layer_contents, 724 settings_.layer_transforms_should_scale_layer_contents,
724 &update_list); 725 &update_list);
725 726
726 if (total_frames_used_for_lcd_text_metrics_ <= 727 if (total_frames_used_for_lcd_text_metrics_ <=
727 kTotalFramesToUseForLCDTextMetrics) { 728 kTotalFramesToUseForLCDTextMetrics) {
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 bool start_ready_animations = true; 1068 bool start_ready_animations = true;
1068 (*iter).second->UpdateState(start_ready_animations, NULL); 1069 (*iter).second->UpdateState(start_ready_animations, NULL);
1069 } 1070 }
1070 } 1071 }
1071 1072
1072 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { 1073 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() {
1073 return proxy_->CapturePicture(); 1074 return proxy_->CapturePicture();
1074 } 1075 }
1075 1076
1076 } // namespace cc 1077 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698