Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef FakeCCProxy_h | |
| 6 #define FakeCCProxy_h | |
| 7 | |
| 8 #include "config.h" | |
| 9 | |
| 10 #include "cc/layer_tree_host.h" | |
| 11 #include "cc/proxy.h" | |
| 12 #include "cc/thread.h" | |
| 13 | |
| 14 namespace cc { | |
| 15 | |
| 16 class FakeProxy : public Proxy { | |
| 17 public: | |
| 18 FakeProxy(Thread* implThread) : Proxy(implThread) { } | |
|
jamesr
2012/10/31 04:42:13
explicit
| |
| 19 | |
| 20 virtual bool compositeAndReadback(void *pixels, const IntRect&) OVERRIDE; | |
| 21 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool use Anchor, float scale, base::TimeDelta duration) OVERRIDE { } | |
| 22 virtual void finishAllRendering() OVERRIDE { } | |
| 23 virtual bool isStarted() const OVERRIDE; | |
| 24 virtual bool initializeContext() OVERRIDE; | |
| 25 virtual void setSurfaceReady() OVERRIDE { } | |
| 26 virtual void setVisible(bool) OVERRIDE { } | |
| 27 virtual bool initializeRenderer() OVERRIDE; | |
| 28 virtual bool recreateContext() OVERRIDE; | |
| 29 virtual void renderingStats(RenderingStats*) OVERRIDE { } | |
| 30 virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE; | |
| 31 virtual void setNeedsAnimate() OVERRIDE { } | |
| 32 virtual void setNeedsCommit() OVERRIDE { } | |
| 33 virtual void setNeedsRedraw() OVERRIDE { } | |
| 34 virtual void setDeferCommits(bool) OVERRIDE { } | |
| 35 virtual void didAddAnimation() OVERRIDE { } | |
| 36 virtual bool commitRequested() const OVERRIDE; | |
| 37 virtual void start() OVERRIDE { } | |
| 38 virtual void stop() OVERRIDE { } | |
| 39 virtual void forceSerializeOnSwapBuffers() OVERRIDE { } | |
| 40 virtual size_t maxPartialTextureUpdates() const OVERRIDE; | |
| 41 virtual void acquireLayerTextures() OVERRIDE { } | |
| 42 virtual void loseContext() OVERRIDE { } | |
| 43 | |
| 44 private: | |
| 45 RendererCapabilities m_capabilities; | |
| 46 }; | |
| 47 | |
| 48 } | |
| 49 | |
| 50 #endif | |
| OLD | NEW |