OLD | NEW |
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 #include "cc/trees/layer_tree_impl.h" | 6 #include "cc/trees/layer_tree_impl.h" |
7 | 7 |
8 namespace cc { | 8 namespace cc { |
9 | 9 |
10 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(Proxy* proxy) | 10 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(Proxy* proxy) |
11 : LayerTreeHostImpl(LayerTreeSettings(), | 11 : LayerTreeHostImpl(LayerTreeSettings(), |
12 &client_, | 12 &client_, |
13 proxy, | 13 proxy, |
14 &stats_instrumentation_, | 14 &stats_instrumentation_, |
15 NULL, | 15 NULL, |
16 0) { | 16 0) { |
17 // Explicitly clear all debug settings. | 17 // Explicitly clear all debug settings. |
18 SetDebugState(LayerTreeDebugState()); | 18 SetDebugState(LayerTreeDebugState()); |
| 19 SetViewportSize(gfx::Size(100, 100)); |
19 } | 20 } |
20 | 21 |
21 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(const LayerTreeSettings& settings, | 22 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(const LayerTreeSettings& settings, |
22 Proxy* proxy) | 23 Proxy* proxy) |
23 : LayerTreeHostImpl(settings, | 24 : LayerTreeHostImpl(settings, |
24 &client_, | 25 &client_, |
25 proxy, | 26 proxy, |
26 &stats_instrumentation_, | 27 &stats_instrumentation_, |
27 NULL, | 28 NULL, |
28 0) { | 29 0) { |
(...skipping 15 matching lines...) Expand all Loading... |
44 return LayerTreeHostImpl::CurrentFrameTimeTicks(); | 45 return LayerTreeHostImpl::CurrentFrameTimeTicks(); |
45 return current_frame_time_ticks_; | 46 return current_frame_time_ticks_; |
46 } | 47 } |
47 | 48 |
48 void FakeLayerTreeHostImpl::SetCurrentFrameTimeTicks( | 49 void FakeLayerTreeHostImpl::SetCurrentFrameTimeTicks( |
49 base::TimeTicks current_frame_time_ticks) { | 50 base::TimeTicks current_frame_time_ticks) { |
50 current_frame_time_ticks_ = current_frame_time_ticks; | 51 current_frame_time_ticks_ = current_frame_time_ticks; |
51 } | 52 } |
52 | 53 |
53 } // namespace cc | 54 } // namespace cc |
OLD | NEW |