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

Side by Side 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: Apply Dana's code review suggestions Created 8 years, 1 month 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 unified diff | Download patch
OLDNEW
(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) { }
19
20 virtual bool compositeAndReadback(void *pixels, const IntRect&) OVERRIDE;
21 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool use Anchor, float scale, double durationSec) 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 didAddAnimation() OVERRIDE { }
35 virtual bool commitRequested() const OVERRIDE;
36 virtual void start() OVERRIDE { }
37 virtual void stop() OVERRIDE { }
38 virtual void forceSerializeOnSwapBuffers() OVERRIDE { }
39 virtual size_t maxPartialTextureUpdates() const OVERRIDE;
40 virtual void acquireLayerTextures() OVERRIDE { }
41 virtual void loseContext() OVERRIDE { }
42
43 private:
44 RendererCapabilities m_capabilities;
45 };
46
47 }
48
49 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698