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

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

Issue 2032303004: cc : Add layer_list to LayerTreeImpl and build it for tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « cc/layers/video_layer_impl_unittest.cc ('k') | cc/test/test_layer_tree_host_base.cc » ('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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "cc/test/begin_frame_args_test.h" 7 #include "cc/test/begin_frame_args_test.h"
8 #include "cc/test/fake_layer_tree_host_impl.h" 8 #include "cc/test/fake_layer_tree_host_impl.h"
9 #include "cc/test/layer_tree_settings_for_testing.h" 9 #include "cc/test/layer_tree_settings_for_testing.h"
10 #include "cc/test/test_shared_bitmap_manager.h" 10 #include "cc/test/test_shared_bitmap_manager.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 96
97 void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawPropertiesForActiveTree() { 97 void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawPropertiesForActiveTree() {
98 UpdateNumChildrenAndDrawProperties(active_tree()); 98 UpdateNumChildrenAndDrawProperties(active_tree());
99 } 99 }
100 100
101 void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawProperties( 101 void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawProperties(
102 LayerTreeImpl* layerTree) { 102 LayerTreeImpl* layerTree) {
103 RecursiveUpdateNumChildren(layerTree->root_layer()); 103 RecursiveUpdateNumChildren(layerTree->root_layer());
104 bool update_lcd_text = false; 104 bool update_lcd_text = false;
105 layerTree->BuildPropertyTreesForTesting(); 105 layerTree->BuildLayerListAndPropertyTreesForTesting();
106 layerTree->UpdateDrawProperties(update_lcd_text); 106 layerTree->UpdateDrawProperties(update_lcd_text);
107 } 107 }
108 108
109 } // namespace cc 109 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/video_layer_impl_unittest.cc ('k') | cc/test/test_layer_tree_host_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698