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

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

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree_host_common.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <string> 9 #include <string>
10 10
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 // that we won't be able to detect if a layer is part of |update_list|. 866 // that we won't be able to detect if a layer is part of |update_list|.
867 // Change this if this information is required. 867 // Change this if this information is required.
868 int render_surface_layer_list_id = 0; 868 int render_surface_layer_list_id = 0;
869 LayerTreeHostCommon::CalcDrawPropsMainInputs inputs( 869 LayerTreeHostCommon::CalcDrawPropsMainInputs inputs(
870 root_layer, device_viewport_size(), gfx::Transform(), 870 root_layer, device_viewport_size(), gfx::Transform(),
871 device_scale_factor_, page_scale_factor_, page_scale_layer, 871 device_scale_factor_, page_scale_factor_, page_scale_layer,
872 elastic_overscroll_, overscroll_elasticity_layer_.get(), 872 elastic_overscroll_, overscroll_elasticity_layer_.get(),
873 GetRendererCapabilities().max_texture_size, settings_.can_use_lcd_text, 873 GetRendererCapabilities().max_texture_size, settings_.can_use_lcd_text,
874 settings_.layers_always_allowed_lcd_text, 874 settings_.layers_always_allowed_lcd_text,
875 can_render_to_separate_surface, 875 can_render_to_separate_surface,
876 settings_.layer_transforms_should_scale_layer_contents, &update_list, 876 settings_.layer_transforms_should_scale_layer_contents,
877 settings_.verify_property_trees, &update_list,
877 render_surface_layer_list_id); 878 render_surface_layer_list_id);
878 LayerTreeHostCommon::CalculateDrawProperties(&inputs); 879 LayerTreeHostCommon::CalculateDrawProperties(&inputs);
879 880
880 if (total_frames_used_for_lcd_text_metrics_ <= 881 if (total_frames_used_for_lcd_text_metrics_ <=
881 kTotalFramesToUseForLCDTextMetrics) { 882 kTotalFramesToUseForLCDTextMetrics) {
882 LayerTreeHostCommon::CallFunctionForSubtree( 883 LayerTreeHostCommon::CallFunctionForSubtree(
883 root_layer, 884 root_layer,
884 base::Bind(&LayerTreeHost::CalculateLCDTextMetricsCallback, 885 base::Bind(&LayerTreeHost::CalculateLCDTextMetricsCallback,
885 base::Unretained(this))); 886 base::Unretained(this)));
886 total_frames_used_for_lcd_text_metrics_++; 887 total_frames_used_for_lcd_text_metrics_++;
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1382 bool children_need_begin_frames) const { 1383 bool children_need_begin_frames) const {
1383 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames); 1384 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames);
1384 } 1385 }
1385 1386
1386 void LayerTreeHost::SendBeginFramesToChildren( 1387 void LayerTreeHost::SendBeginFramesToChildren(
1387 const BeginFrameArgs& args) const { 1388 const BeginFrameArgs& args) const {
1388 client_->SendBeginFramesToChildren(args); 1389 client_->SendBeginFramesToChildren(args);
1389 } 1390 }
1390 1391
1391 } // namespace cc 1392 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree_host_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698