| 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 | 4 |
| 5 #ifndef CC_TEST_FAKE_PROXY_H_ | 5 #ifndef CC_TEST_FAKE_PROXY_H_ |
| 6 #define CC_TEST_FAKE_PROXY_H_ | 6 #define CC_TEST_FAKE_PROXY_H_ |
| 7 | 7 |
| 8 #include "cc/layer_tree_host.h" | 8 #include "cc/layer_tree_host.h" |
| 9 #include "cc/proxy.h" | 9 #include "cc/proxy.h" |
| 10 #include "cc/thread.h" | 10 #include "cc/thread.h" |
| 11 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 | 13 |
| 14 class FakeProxy : public Proxy { | 14 class FakeProxy : public Proxy { |
| 15 public: | 15 public: |
| 16 explicit FakeProxy(scoped_ptr<Thread> implThread) : Proxy(implThread.Pass())
{ } | 16 explicit FakeProxy(scoped_ptr<Thread> implThread) : Proxy(implThread.Pass())
{ } |
| 17 | 17 |
| 18 virtual bool compositeAndReadback(void *pixels, const gfx::Rect&) OVERRIDE; | 18 virtual bool compositeAndReadback(void *pixels, const gfx::Rect&) OVERRIDE; |
| 19 virtual void startPageScaleAnimation(gfx::Vector2d targetPosition, bool useA
nchor, float scale, base::TimeDelta duration) OVERRIDE { } | 19 virtual void startPageScaleAnimation(gfx::Vector2d targetPosition, bool useA
nchor, float scale, base::TimeDelta duration) OVERRIDE { } |
| 20 virtual void finishAllRendering() OVERRIDE { } | 20 virtual void finishAllRendering() OVERRIDE { } |
| 21 virtual bool isStarted() const OVERRIDE; | 21 virtual bool isStarted() const OVERRIDE; |
| 22 virtual bool initializeContext() OVERRIDE; | 22 virtual bool initializeOutputSurface() OVERRIDE; |
| 23 virtual void setSurfaceReady() OVERRIDE { } | 23 virtual void setSurfaceReady() OVERRIDE { } |
| 24 virtual void setVisible(bool) OVERRIDE { } | 24 virtual void setVisible(bool) OVERRIDE { } |
| 25 virtual bool initializeRenderer() OVERRIDE; | 25 virtual bool initializeRenderer() OVERRIDE; |
| 26 virtual bool recreateContext() OVERRIDE; | 26 virtual bool recreateOutputSurface() OVERRIDE; |
| 27 virtual void renderingStats(RenderingStats*) OVERRIDE { } | 27 virtual void renderingStats(RenderingStats*) OVERRIDE { } |
| 28 virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE; | 28 virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE; |
| 29 virtual void setNeedsAnimate() OVERRIDE { } | 29 virtual void setNeedsAnimate() OVERRIDE { } |
| 30 virtual void setNeedsCommit() OVERRIDE { } | 30 virtual void setNeedsCommit() OVERRIDE { } |
| 31 virtual void setNeedsRedraw() OVERRIDE { } | 31 virtual void setNeedsRedraw() OVERRIDE { } |
| 32 virtual void setDeferCommits(bool) OVERRIDE { } | 32 virtual void setDeferCommits(bool) OVERRIDE { } |
| 33 virtual void didAddAnimation() OVERRIDE { } | 33 virtual void didAddAnimation() OVERRIDE { } |
| 34 virtual bool commitRequested() const OVERRIDE; | 34 virtual bool commitRequested() const OVERRIDE; |
| 35 virtual void start() OVERRIDE { } | 35 virtual void start() OVERRIDE { } |
| 36 virtual void stop() OVERRIDE { } | 36 virtual void stop() OVERRIDE { } |
| 37 virtual void forceSerializeOnSwapBuffers() OVERRIDE { } | 37 virtual void forceSerializeOnSwapBuffers() OVERRIDE { } |
| 38 virtual size_t maxPartialTextureUpdates() const OVERRIDE; | 38 virtual size_t maxPartialTextureUpdates() const OVERRIDE; |
| 39 virtual void acquireLayerTextures() OVERRIDE { } | 39 virtual void acquireLayerTextures() OVERRIDE { } |
| 40 virtual void loseContext() OVERRIDE { } | 40 virtual void loseOutputSurface() OVERRIDE { } |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 RendererCapabilities m_capabilities; | 43 RendererCapabilities m_capabilities; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace cc | 46 } // namespace cc |
| 47 | 47 |
| 48 #endif // CC_TEST_FAKE_PROXY_H_ | 48 #endif // CC_TEST_FAKE_PROXY_H_ |
| OLD | NEW |