OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_STUB_LAYER_TREE_HOST_CLIENT_H_ | 5 #ifndef CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_ |
6 #define CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_ | 6 #define CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_ |
7 | 7 |
8 #include "cc/trees/layer_tree_host_client.h" | 8 #include "cc/trees/layer_tree_host_client.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
11 | 11 |
12 class StubLayerTreeHostClient : public LayerTreeHostClient { | 12 class StubLayerTreeHostClient : public LayerTreeHostClient { |
13 public: | 13 public: |
14 ~StubLayerTreeHostClient() override; | 14 ~StubLayerTreeHostClient() override; |
15 | 15 |
16 // LayerTreeHostClient implementation. | 16 // LayerTreeHostClient implementation. |
17 void WillBeginMainFrame() override {} | 17 void WillBeginMainFrame() override {} |
18 void DidBeginMainFrame() override {} | 18 void DidBeginMainFrame() override {} |
19 void BeginMainFrame(const BeginFrameArgs& args) override {} | 19 void BeginMainFrame(const BeginFrameArgs& args) override {} |
20 void BeginMainFrameNotExpectedSoon() override {} | 20 void BeginMainFrameNotExpectedSoon() override {} |
21 void UpdateLayerTreeHost() override {} | 21 void UpdateLayerTreeHost() override {} |
22 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 22 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
23 const gfx::Vector2dF& outer_delta, | 23 const gfx::Vector2dF& outer_delta, |
24 const gfx::Vector2dF& elastic_overscroll_delta, | 24 const gfx::Vector2dF& elastic_overscroll_delta, |
25 float page_scale, | 25 float page_scale, |
26 float top_controls_delta) override {} | 26 float top_controls_delta) override {} |
27 void RequestNewOutputSurface() override {} | 27 void RequestNewCompositorFrameSink() override {} |
28 void DidInitializeOutputSurface() override {} | 28 void DidInitializeCompositorFrameSink() override {} |
29 void DidFailToInitializeOutputSurface() override {} | 29 void DidFailToInitializeCompositorFrameSink() override {} |
30 void WillCommit() override {} | 30 void WillCommit() override {} |
31 void DidCommit() override {} | 31 void DidCommit() override {} |
32 void DidCommitAndDrawFrame() override {} | 32 void DidCommitAndDrawFrame() override {} |
33 void DidCompleteSwapBuffers() override {} | 33 void DidCompleteSwapBuffers() override {} |
34 void DidCompletePageScaleAnimation() override {} | 34 void DidCompletePageScaleAnimation() override {} |
35 }; | 35 }; |
36 | 36 |
37 } // namespace cc | 37 } // namespace cc |
38 | 38 |
39 #endif // CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_ | 39 #endif // CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_ |
OLD | NEW |