OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 WebLayerTreeViewImplForTesting_h | 5 #ifndef WebLayerTreeViewImplForTesting_h |
6 #define WebLayerTreeViewImplForTesting_h | 6 #define WebLayerTreeViewImplForTesting_h |
7 | 7 |
8 #include "cc/test/test_task_graph_runner.h" | 8 #include "cc/test/test_task_graph_runner.h" |
9 #include "cc/trees/layer_tree_host_client.h" | 9 #include "cc/trees/layer_tree_host_client.h" |
10 #include "cc/trees/layer_tree_host_single_thread_client.h" | 10 #include "cc/trees/layer_tree_host_single_thread_client.h" |
11 #include "public/platform/WebLayerTreeView.h" | 11 #include "public/platform/WebLayerTreeView.h" |
12 #include <memory> | 12 #include <memory> |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 class LayerTreeHost; | 15 class LayerTreeHost; |
16 class LayerTreeSettings; | 16 class LayerTreeSettings; |
17 } | 17 } |
18 | 18 |
19 namespace blink { | 19 namespace blink { |
20 | 20 |
21 class WebCompositorAnimationTimeline; | |
22 class WebLayer; | 21 class WebLayer; |
23 | 22 |
24 // Dummy WeblayerTeeView that does not support any actual compositing. | 23 // Dummy WeblayerTeeView that does not support any actual compositing. |
25 class WebLayerTreeViewImplForTesting | 24 class WebLayerTreeViewImplForTesting |
26 : public blink::WebLayerTreeView, | 25 : public blink::WebLayerTreeView, |
27 public cc::LayerTreeHostClient, | 26 public cc::LayerTreeHostClient, |
28 public cc::LayerTreeHostSingleThreadClient { | 27 public cc::LayerTreeHostSingleThreadClient { |
29 WTF_MAKE_NONCOPYABLE(WebLayerTreeViewImplForTesting); | 28 WTF_MAKE_NONCOPYABLE(WebLayerTreeViewImplForTesting); |
30 | 29 |
31 public: | 30 public: |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 void DidLoseCompositorFrameSink() override {} | 100 void DidLoseCompositorFrameSink() override {} |
102 | 101 |
103 private: | 102 private: |
104 cc::TestTaskGraphRunner m_taskGraphRunner; | 103 cc::TestTaskGraphRunner m_taskGraphRunner; |
105 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost; | 104 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost; |
106 }; | 105 }; |
107 | 106 |
108 } // namespace blink | 107 } // namespace blink |
109 | 108 |
110 #endif // WebLayerTreeViewImplForTesting_h | 109 #endif // WebLayerTreeViewImplForTesting_h |
OLD | NEW |