Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2561)

Unified Diff: cc/test/fake_proxy.h

Issue 11232051: Remove static thread pointers from CC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 165064 Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/test/fake_proxy.h
diff --git a/cc/test/fake_proxy.h b/cc/test/fake_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..106e7e52ff53fd99efc009a80584dee7083a81a3
--- /dev/null
+++ b/cc/test/fake_proxy.h
@@ -0,0 +1,50 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef FakeCCProxy_h
+#define FakeCCProxy_h
+
+#include "config.h"
+
+#include "cc/layer_tree_host.h"
+#include "cc/proxy.h"
+#include "cc/thread.h"
+
+namespace cc {
+
+class FakeProxy : public Proxy {
+public:
+ FakeProxy(Thread* implThread) : Proxy(implThread) { }
jamesr 2012/10/31 04:42:13 explicit
+
+ virtual bool compositeAndReadback(void *pixels, const IntRect&) OVERRIDE;
+ virtual void startPageScaleAnimation(const IntSize& targetPosition, bool useAnchor, float scale, base::TimeDelta duration) OVERRIDE { }
+ virtual void finishAllRendering() OVERRIDE { }
+ virtual bool isStarted() const OVERRIDE;
+ virtual bool initializeContext() OVERRIDE;
+ virtual void setSurfaceReady() OVERRIDE { }
+ virtual void setVisible(bool) OVERRIDE { }
+ virtual bool initializeRenderer() OVERRIDE;
+ virtual bool recreateContext() OVERRIDE;
+ virtual void renderingStats(RenderingStats*) OVERRIDE { }
+ virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE;
+ virtual void setNeedsAnimate() OVERRIDE { }
+ virtual void setNeedsCommit() OVERRIDE { }
+ virtual void setNeedsRedraw() OVERRIDE { }
+ virtual void setDeferCommits(bool) OVERRIDE { }
+ virtual void didAddAnimation() OVERRIDE { }
+ virtual bool commitRequested() const OVERRIDE;
+ virtual void start() OVERRIDE { }
+ virtual void stop() OVERRIDE { }
+ virtual void forceSerializeOnSwapBuffers() OVERRIDE { }
+ virtual size_t maxPartialTextureUpdates() const OVERRIDE;
+ virtual void acquireLayerTextures() OVERRIDE { }
+ virtual void loseContext() OVERRIDE { }
+
+private:
+ RendererCapabilities m_capabilities;
+};
+
+}
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698