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

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

Issue 1411663002: cc: Split Proxy to eliminate unnecessary dependencies on the impl side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 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/begin_frame_args_test.h" 5 #include "cc/test/begin_frame_args_test.h"
6 #include "cc/test/fake_layer_tree_host_impl.h" 6 #include "cc/test/fake_layer_tree_host_impl.h"
7 #include "cc/test/test_shared_bitmap_manager.h" 7 #include "cc/test/test_shared_bitmap_manager.h"
8 #include "cc/trees/layer_tree_impl.h" 8 #include "cc/trees/layer_tree_impl.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(Proxy* proxy, 12 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(ThreadVerifier* thread_verifier,
13 SharedBitmapManager* manager, 13 SharedBitmapManager* manager,
14 TaskGraphRunner* task_graph_runner) 14 TaskGraphRunner* task_graph_runner)
15 : FakeLayerTreeHostImpl(LayerTreeSettings(), 15 : FakeLayerTreeHostImpl(LayerTreeSettings(),
16 proxy, 16 thread_verifier,
17 manager, 17 manager,
18 task_graph_runner, 18 task_graph_runner,
19 nullptr) {} 19 nullptr) {}
20 20
21 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(const LayerTreeSettings& settings, 21 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(const LayerTreeSettings& settings,
22 Proxy* proxy, 22 ThreadVerifier* thread_verifier,
23 SharedBitmapManager* manager, 23 SharedBitmapManager* manager,
24 TaskGraphRunner* task_graph_runner) 24 TaskGraphRunner* task_graph_runner)
25 : FakeLayerTreeHostImpl(settings, 25 : FakeLayerTreeHostImpl(settings,
26 proxy, 26 thread_verifier,
27 manager, 27 manager,
28 task_graph_runner, 28 task_graph_runner,
29 nullptr) {} 29 nullptr) {}
30 30
31 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl( 31 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(
32 const LayerTreeSettings& settings, 32 const LayerTreeSettings& settings,
33 Proxy* proxy, 33 ThreadVerifier* thread_verifier,
34 SharedBitmapManager* manager, 34 SharedBitmapManager* manager,
35 TaskGraphRunner* task_graph_runner, 35 TaskGraphRunner* task_graph_runner,
36 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager) 36 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager)
37 : LayerTreeHostImpl(settings, 37 : LayerTreeHostImpl(settings,
38 &client_, 38 &client_,
39 proxy, 39 thread_verifier,
40 &stats_instrumentation_, 40 &stats_instrumentation_,
41 manager, 41 manager,
42 gpu_memory_buffer_manager, 42 gpu_memory_buffer_manager,
43 task_graph_runner, 43 task_graph_runner,
44 0) { 44 0) {
45 // Explicitly clear all debug settings. 45 // Explicitly clear all debug settings.
46 SetDebugState(LayerTreeDebugState()); 46 SetDebugState(LayerTreeDebugState());
47 SetViewportSize(gfx::Size(100, 100)); 47 SetViewportSize(gfx::Size(100, 100));
48 48
49 // Start an impl frame so tests have a valid frame_time to work with. 49 // Start an impl frame so tests have a valid frame_time to work with.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawProperties( 91 void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawProperties(
92 LayerTreeImpl* layerTree) { 92 LayerTreeImpl* layerTree) {
93 RecursiveUpdateNumChildren(layerTree->root_layer()); 93 RecursiveUpdateNumChildren(layerTree->root_layer());
94 bool update_lcd_text = false; 94 bool update_lcd_text = false;
95 layerTree->BuildPropertyTreesForTesting(); 95 layerTree->BuildPropertyTreesForTesting();
96 layerTree->UpdateDrawProperties(update_lcd_text); 96 layerTree->UpdateDrawProperties(update_lcd_text);
97 } 97 }
98 98
99 } // namespace cc 99 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698