| 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" |
| 9 #include "CCLayerTreeHost.h" | 10 #include "CCLayerTreeHost.h" |
| 10 #include "CompositorFakeWebGraphicsContext3D.h" | 11 #include "CompositorFakeWebGraphicsContext3D.h" |
| 11 #include "FakeWebCompositorOutputSurface.h" | 12 #include "FakeWebCompositorOutputSurface.h" |
| 12 | 13 |
| 13 namespace WebCore { | 14 namespace WebCore { |
| 14 | 15 |
| 15 class FakeCCLayerTreeHostClient : public CCLayerTreeHostClient { | 16 class FakeCCLayerTreeHostClient : public CCLayerTreeHostClient { |
| 16 public: | 17 public: |
| 17 virtual void willBeginFrame() OVERRIDE { } | 18 virtual void willBeginFrame() OVERRIDE { } |
| 18 virtual void didBeginFrame() OVERRIDE { } | 19 virtual void didBeginFrame() OVERRIDE { } |
| 19 virtual void animate(double monotonicFrameBeginTime) OVERRIDE { } | 20 virtual void animate(double monotonicFrameBeginTime) OVERRIDE { } |
| 20 virtual void layout() OVERRIDE { } | 21 virtual void layout() OVERRIDE { } |
| 21 virtual void applyScrollAndScale(const IntSize& scrollDelta, float pageScale
) OVERRIDE { } | 22 virtual void applyScrollAndScale(const IntSize& scrollDelta, float pageScale
) OVERRIDE { } |
| 22 | 23 |
| 23 virtual PassOwnPtr<WebKit::WebCompositorOutputSurface> createOutputSurface()
OVERRIDE | 24 virtual PassOwnPtr<WebKit::WebCompositorOutputSurface> createOutputSurface()
OVERRIDE |
| 24 { | 25 { |
| 25 WebKit::WebGraphicsContext3D::Attributes attrs; | 26 WebKit::WebGraphicsContext3D::Attributes attrs; |
| 26 return WebKit::FakeWebCompositorOutputSurface::create(WebKit::Compositor
FakeWebGraphicsContext3D::create(attrs)); | 27 return WebKit::FakeWebCompositorOutputSurface::create(WebKit::Compositor
FakeWebGraphicsContext3D::create(attrs)); |
| 27 } | 28 } |
| 28 virtual void didRecreateOutputSurface(bool success) OVERRIDE { } | 29 virtual void didRecreateOutputSurface(bool success) OVERRIDE { } |
| 30 virtual PassOwnPtr<CCInputHandler> createInputHandler() OVERRIDE { return nu
llptr; } |
| 29 virtual void willCommit() OVERRIDE { } | 31 virtual void willCommit() OVERRIDE { } |
| 30 virtual void didCommit() OVERRIDE { } | 32 virtual void didCommit() OVERRIDE { } |
| 31 virtual void didCommitAndDrawFrame() OVERRIDE { } | 33 virtual void didCommitAndDrawFrame() OVERRIDE { } |
| 32 virtual void didCompleteSwapBuffers() OVERRIDE { } | 34 virtual void didCompleteSwapBuffers() OVERRIDE { } |
| 33 | 35 |
| 34 // Used only in the single-threaded path. | 36 // Used only in the single-threaded path. |
| 35 virtual void scheduleComposite() OVERRIDE { } | 37 virtual void scheduleComposite() OVERRIDE { } |
| 36 }; | 38 }; |
| 37 | 39 |
| 38 } | 40 } |
| 39 #endif // FakeCCLayerTreeHostClient_h | 41 #endif // FakeCCLayerTreeHostClient_h |
| OLD | NEW |