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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 void WillBeginMainFrame() override {} | 77 void WillBeginMainFrame() override {} |
78 void DidBeginMainFrame() override {} | 78 void DidBeginMainFrame() override {} |
79 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} | 79 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} |
80 void BeginMainFrameNotExpectedSoon() override {} | 80 void BeginMainFrameNotExpectedSoon() override {} |
81 void UpdateLayerTreeHost() override; | 81 void UpdateLayerTreeHost() override; |
82 void ApplyViewportDeltas(const gfx::Vector2dF& innerDelta, | 82 void ApplyViewportDeltas(const gfx::Vector2dF& innerDelta, |
83 const gfx::Vector2dF& outerDelta, | 83 const gfx::Vector2dF& outerDelta, |
84 const gfx::Vector2dF& elasticOverscrollDelta, | 84 const gfx::Vector2dF& elasticOverscrollDelta, |
85 float pageScale, | 85 float pageScale, |
86 float topControlsDelta) override; | 86 float topControlsDelta) override; |
87 void RequestNewOutputSurface() override; | 87 void RequestNewCompositorFrameSink() override; |
88 void DidInitializeOutputSurface() override {} | 88 void DidInitializeCompositorFrameSink() override {} |
89 void DidFailToInitializeOutputSurface() override; | 89 void DidFailToInitializeCompositorFrameSink() override; |
90 void WillCommit() override {} | 90 void WillCommit() override {} |
91 void DidCommit() override {} | 91 void DidCommit() override {} |
92 void DidCommitAndDrawFrame() override {} | 92 void DidCommitAndDrawFrame() override {} |
93 void DidCompleteSwapBuffers() override {} | 93 void DidCompleteSwapBuffers() override {} |
94 void DidCompletePageScaleAnimation() override {} | 94 void DidCompletePageScaleAnimation() override {} |
95 | 95 |
96 // cc::LayerTreeHostSingleThreadClient implementation. | 96 // cc::LayerTreeHostSingleThreadClient implementation. |
97 void DidPostSwapBuffers() override {} | 97 void DidPostSwapBuffers() override {} |
98 void DidAbortSwapBuffers() override {} | 98 void DidAbortSwapBuffers() override {} |
99 | 99 |
100 private: | 100 private: |
101 cc::TestTaskGraphRunner m_taskGraphRunner; | 101 cc::TestTaskGraphRunner m_taskGraphRunner; |
102 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost; | 102 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost; |
103 }; | 103 }; |
104 | 104 |
105 } // namespace blink | 105 } // namespace blink |
106 | 106 |
107 #endif // WebLayerTreeViewImplForTesting_h | 107 #endif // WebLayerTreeViewImplForTesting_h |
OLD | NEW |