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 #ifndef FakeCCLayerTreeHostClient_h | 4 #ifndef FakeCCLayerTreeHostClient_h |
5 #define FakeCCLayerTreeHostClient_h | 5 #define FakeCCLayerTreeHostClient_h |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 | 8 |
9 #include "CCInputHandler.h" | |
10 #include "CCLayerTreeHost.h" | |
11 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/input_handler.h" |
| 11 #include "cc/layer_tree_host.h" |
12 #include "cc/test/compositor_fake_web_graphics_context_3d.h" | 12 #include "cc/test/compositor_fake_web_graphics_context_3d.h" |
13 #include "cc/test/fake_web_compositor_output_surface.h" | 13 #include "cc/test/fake_web_compositor_output_surface.h" |
14 | 14 |
15 namespace cc { | 15 namespace cc { |
16 | 16 |
17 class FakeCCLayerTreeHostClient : public CCLayerTreeHostClient { | 17 class FakeCCLayerTreeHostClient : public CCLayerTreeHostClient { |
18 public: | 18 public: |
19 virtual void willBeginFrame() OVERRIDE { } | 19 virtual void willBeginFrame() OVERRIDE { } |
20 virtual void didBeginFrame() OVERRIDE { } | 20 virtual void didBeginFrame() OVERRIDE { } |
21 virtual void animate(double monotonicFrameBeginTime) OVERRIDE { } | 21 virtual void animate(double monotonicFrameBeginTime) OVERRIDE { } |
22 virtual void layout() OVERRIDE { } | 22 virtual void layout() OVERRIDE { } |
23 virtual void applyScrollAndScale(const IntSize& scrollDelta, float pageScale
) OVERRIDE { } | 23 virtual void applyScrollAndScale(const IntSize& scrollDelta, float pageScale
) OVERRIDE { } |
24 | 24 |
25 virtual scoped_ptr<WebKit::WebCompositorOutputSurface> createOutputSurface()
OVERRIDE; | 25 virtual scoped_ptr<WebKit::WebCompositorOutputSurface> createOutputSurface()
OVERRIDE; |
26 virtual void didRecreateOutputSurface(bool success) OVERRIDE { } | 26 virtual void didRecreateOutputSurface(bool success) OVERRIDE { } |
27 virtual scoped_ptr<CCInputHandler> createInputHandler() OVERRIDE; | 27 virtual scoped_ptr<CCInputHandler> createInputHandler() OVERRIDE; |
28 virtual void willCommit() OVERRIDE { } | 28 virtual void willCommit() OVERRIDE { } |
29 virtual void didCommit() OVERRIDE { } | 29 virtual void didCommit() OVERRIDE { } |
30 virtual void didCommitAndDrawFrame() OVERRIDE { } | 30 virtual void didCommitAndDrawFrame() OVERRIDE { } |
31 virtual void didCompleteSwapBuffers() OVERRIDE { } | 31 virtual void didCompleteSwapBuffers() OVERRIDE { } |
32 | 32 |
33 // Used only in the single-threaded path. | 33 // Used only in the single-threaded path. |
34 virtual void scheduleComposite() OVERRIDE { } | 34 virtual void scheduleComposite() OVERRIDE { } |
35 }; | 35 }; |
36 | 36 |
37 } | 37 } |
38 #endif // FakeCCLayerTreeHostClient_h | 38 #endif // FakeCCLayerTreeHostClient_h |
OLD | NEW |