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

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: Add 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 #include <stack> 8 #include <stack>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 LayerList update_list; 716 LayerList update_list;
717 { 717 {
718 UpdateHudLayer(); 718 UpdateHudLayer();
719 719
720 Layer* root_scroll = FindFirstScrollableLayer(root_layer); 720 Layer* root_scroll = FindFirstScrollableLayer(root_layer);
721 721
722 TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers::CalcDrawProps"); 722 TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers::CalcDrawProps");
723 LayerTreeHostCommon::CalculateDrawProperties( 723 LayerTreeHostCommon::CalculateDrawProperties(
724 root_layer, 724 root_layer,
725 device_viewport_size(), 725 device_viewport_size(),
726 gfx::Transform(),
726 device_scale_factor_, 727 device_scale_factor_,
727 page_scale_factor_, 728 page_scale_factor_,
728 root_scroll, 729 root_scroll,
729 GetRendererCapabilities().max_texture_size, 730 GetRendererCapabilities().max_texture_size,
730 settings_.can_use_lcd_text, 731 settings_.can_use_lcd_text,
731 settings_.layer_transforms_should_scale_layer_contents, 732 settings_.layer_transforms_should_scale_layer_contents,
732 &update_list); 733 &update_list);
733 734
734 if (total_frames_used_for_lcd_text_metrics_ <= 735 if (total_frames_used_for_lcd_text_metrics_ <=
735 kTotalFramesToUseForLCDTextMetrics) { 736 kTotalFramesToUseForLCDTextMetrics) {
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 bool start_ready_animations = true; 1080 bool start_ready_animations = true;
1080 (*iter).second->UpdateState(start_ready_animations, NULL); 1081 (*iter).second->UpdateState(start_ready_animations, NULL);
1081 } 1082 }
1082 } 1083 }
1083 1084
1084 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { 1085 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() {
1085 return proxy_->CapturePicture(); 1086 return proxy_->CapturePicture();
1086 } 1087 }
1087 1088
1088 } // namespace cc 1089 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698