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

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

Issue 1783613004: CC Animation: Erase cc::LayerSettings everywhere. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@eraseandroid
Patch Set: Rebase. Created 4 years, 9 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/fake_painted_scrollbar_layer.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 <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"
10 #include "cc/test/test_shared_bitmap_manager.h" 9 #include "cc/test/test_shared_bitmap_manager.h"
11 #include "cc/trees/layer_tree_impl.h" 10 #include "cc/trees/layer_tree_impl.h"
12 11
13 namespace cc { 12 namespace cc {
14 13
15 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl( 14 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(
16 TaskRunnerProvider* task_runner_provider, 15 TaskRunnerProvider* task_runner_provider,
17 SharedBitmapManager* manager, 16 SharedBitmapManager* manager,
18 TaskGraphRunner* task_graph_runner) 17 TaskGraphRunner* task_graph_runner)
19 : FakeLayerTreeHostImpl(LayerTreeSettingsForTesting(), 18 : FakeLayerTreeHostImpl(LayerTreeSettings(),
20 task_runner_provider, 19 task_runner_provider,
21 manager, 20 manager,
22 task_graph_runner, 21 task_graph_runner,
23 nullptr) {} 22 nullptr) {}
24 23
25 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl( 24 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(
26 const LayerTreeSettings& settings, 25 const LayerTreeSettings& settings,
27 TaskRunnerProvider* task_runner_provider, 26 TaskRunnerProvider* task_runner_provider,
28 SharedBitmapManager* manager, 27 SharedBitmapManager* manager,
29 TaskGraphRunner* task_graph_runner) 28 TaskGraphRunner* task_graph_runner)
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 98
100 void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawProperties( 99 void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawProperties(
101 LayerTreeImpl* layerTree) { 100 LayerTreeImpl* layerTree) {
102 RecursiveUpdateNumChildren(layerTree->root_layer()); 101 RecursiveUpdateNumChildren(layerTree->root_layer());
103 bool update_lcd_text = false; 102 bool update_lcd_text = false;
104 layerTree->BuildPropertyTreesForTesting(); 103 layerTree->BuildPropertyTreesForTesting();
105 layerTree->UpdateDrawProperties(update_lcd_text); 104 layerTree->UpdateDrawProperties(update_lcd_text);
106 } 105 }
107 106
108 } // namespace cc 107 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host.cc ('k') | cc/test/fake_painted_scrollbar_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698