| 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 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include "cc/test/fake_layer_tree_host_impl_client.h" | 8 #include "cc/test/fake_layer_tree_host_impl_client.h" |
| 9 #include "cc/test/fake_rendering_stats_instrumentation.h" | 9 #include "cc/test/fake_rendering_stats_instrumentation.h" |
| 10 #include "cc/trees/layer_tree_host_impl.h" | 10 #include "cc/trees/layer_tree_host_impl.h" |
| 11 #include "cc/trees/single_thread_proxy.h" | 11 #include "cc/trees/single_thread_proxy.h" |
| 12 | 12 |
| 13 namespace cc { | 13 namespace cc { |
| 14 | 14 |
| 15 class AnimationHost; | 15 class AnimationHost; |
| 16 | 16 |
| 17 class FakeLayerTreeHostImpl : public LayerTreeHostImpl { | 17 class FakeLayerTreeHostImpl : public LayerTreeHostImpl { |
| 18 public: | 18 public: |
| 19 FakeLayerTreeHostImpl(TaskRunnerProvider* task_runner_provider, | 19 FakeLayerTreeHostImpl(TaskRunnerProvider* task_runner_provider, |
| 20 TaskGraphRunner* task_graph_runner); | 20 TaskGraphRunner* task_graph_runner); |
| 21 FakeLayerTreeHostImpl(const LayerTreeSettings& settings, | 21 FakeLayerTreeHostImpl(const LayerTreeSettings& settings, |
| 22 TaskRunnerProvider* task_runner_provider, | 22 TaskRunnerProvider* task_runner_provider, |
| 23 TaskGraphRunner* task_graph_runner); | 23 TaskGraphRunner* task_graph_runner); |
| 24 FakeLayerTreeHostImpl( |
| 25 const LayerTreeSettings& settings, |
| 26 TaskRunnerProvider* task_runner_provider, |
| 27 TaskGraphRunner* task_graph_runner, |
| 28 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner); |
| 24 ~FakeLayerTreeHostImpl() override; | 29 ~FakeLayerTreeHostImpl() override; |
| 25 | 30 |
| 26 void ForcePrepareToDraw() { | 31 void ForcePrepareToDraw() { |
| 27 LayerTreeHostImpl::FrameData frame_data; | 32 LayerTreeHostImpl::FrameData frame_data; |
| 28 PrepareToDraw(&frame_data); | 33 PrepareToDraw(&frame_data); |
| 29 DidDrawAllLayers(frame_data); | 34 DidDrawAllLayers(frame_data); |
| 30 } | 35 } |
| 31 | 36 |
| 32 void CreatePendingTree() override; | 37 void CreatePendingTree() override; |
| 33 | 38 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 57 | 62 |
| 58 private: | 63 private: |
| 59 FakeLayerTreeHostImplClient client_; | 64 FakeLayerTreeHostImplClient client_; |
| 60 FakeRenderingStatsInstrumentation stats_instrumentation_; | 65 FakeRenderingStatsInstrumentation stats_instrumentation_; |
| 61 bool notify_tile_state_changed_called_; | 66 bool notify_tile_state_changed_called_; |
| 62 }; | 67 }; |
| 63 | 68 |
| 64 } // namespace cc | 69 } // namespace cc |
| 65 | 70 |
| 66 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ | 71 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |