| 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" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 WTF_MAKE_NONCOPYABLE(WebLayerTreeViewImplForTesting); | 29 WTF_MAKE_NONCOPYABLE(WebLayerTreeViewImplForTesting); |
| 30 | 30 |
| 31 public: | 31 public: |
| 32 WebLayerTreeViewImplForTesting(); | 32 WebLayerTreeViewImplForTesting(); |
| 33 explicit WebLayerTreeViewImplForTesting(const cc::LayerTreeSettings&); | 33 explicit WebLayerTreeViewImplForTesting(const cc::LayerTreeSettings&); |
| 34 ~WebLayerTreeViewImplForTesting() override; | 34 ~WebLayerTreeViewImplForTesting() override; |
| 35 | 35 |
| 36 static cc::LayerTreeSettings defaultLayerTreeSettings(); | 36 static cc::LayerTreeSettings defaultLayerTreeSettings(); |
| 37 cc::LayerTreeHost* layerTreeHost() { return m_layerTreeHost.get(); } | 37 cc::LayerTreeHost* layerTreeHost() { return m_layerTreeHost.get(); } |
| 38 bool hasLayer(const WebLayer&); | 38 bool hasLayer(const WebLayer&); |
| 39 bool hasTransparentBackground(); |
| 39 | 40 |
| 40 // blink::WebLayerTreeView implementation. | 41 // blink::WebLayerTreeView implementation. |
| 41 void setRootLayer(const blink::WebLayer&) override; | 42 void setRootLayer(const blink::WebLayer&) override; |
| 42 void clearRootLayer() override; | 43 void clearRootLayer() override; |
| 43 void attachCompositorAnimationTimeline(cc::AnimationTimeline*) override; | 44 void attachCompositorAnimationTimeline(cc::AnimationTimeline*) override; |
| 44 void detachCompositorAnimationTimeline(cc::AnimationTimeline*) override; | 45 void detachCompositorAnimationTimeline(cc::AnimationTimeline*) override; |
| 45 virtual void setViewportSize(const blink::WebSize& unusedDeprecated, | 46 virtual void setViewportSize(const blink::WebSize& unusedDeprecated, |
| 46 const blink::WebSize& deviceViewportSize); | 47 const blink::WebSize& deviceViewportSize); |
| 47 void setViewportSize(const blink::WebSize&) override; | 48 void setViewportSize(const blink::WebSize&) override; |
| 48 WebSize getViewportSize() const override; | 49 WebSize getViewportSize() const override; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 103 |
| 103 private: | 104 private: |
| 104 cc::TestTaskGraphRunner m_taskGraphRunner; | 105 cc::TestTaskGraphRunner m_taskGraphRunner; |
| 105 std::unique_ptr<cc::AnimationHost> m_animationHost; | 106 std::unique_ptr<cc::AnimationHost> m_animationHost; |
| 106 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost; | 107 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost; |
| 107 }; | 108 }; |
| 108 | 109 |
| 109 } // namespace blink | 110 } // namespace blink |
| 110 | 111 |
| 111 #endif // WebLayerTreeViewImplForTesting_h | 112 #endif // WebLayerTreeViewImplForTesting_h |
| OLD | NEW |