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

Side by Side Diff: cc/test/fake_layer_tree_host_impl.cc

Issue 2080223010: cc: Clean up root_layer code in LTI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase++ Created 4 years, 5 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
« no previous file with comments | « cc/test/fake_layer_tree_host.cc ('k') | cc/test/layer_test_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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/test/fake_layer_tree_host_impl.h" 5 #include "cc/test/fake_layer_tree_host_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "cc/animation/animation_host.h" 9 #include "cc/animation/animation_host.h"
10 #include "cc/test/begin_frame_args_test.h" 10 #include "cc/test/begin_frame_args_test.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 num_children_that_draw_content; 97 num_children_that_draw_content;
98 return num_children_that_draw_content + (layer->DrawsContent() ? 1 : 0); 98 return num_children_that_draw_content + (layer->DrawsContent() ? 1 : 0);
99 } 99 }
100 100
101 void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawPropertiesForActiveTree() { 101 void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawPropertiesForActiveTree() {
102 UpdateNumChildrenAndDrawProperties(active_tree()); 102 UpdateNumChildrenAndDrawProperties(active_tree());
103 } 103 }
104 104
105 void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawProperties( 105 void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawProperties(
106 LayerTreeImpl* layerTree) { 106 LayerTreeImpl* layerTree) {
107 RecursiveUpdateNumChildren(layerTree->root_layer()); 107 RecursiveUpdateNumChildren(layerTree->root_layer_for_testing());
108 bool update_lcd_text = false; 108 bool update_lcd_text = false;
109 layerTree->BuildLayerListAndPropertyTreesForTesting(); 109 layerTree->BuildLayerListAndPropertyTreesForTesting();
110 layerTree->UpdateDrawProperties(update_lcd_text); 110 layerTree->UpdateDrawProperties(update_lcd_text);
111 } 111 }
112 112
113 } // namespace cc 113 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host.cc ('k') | cc/test/layer_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698