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

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 code review comments 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
« no previous file with comments | « cc/solid_color_layer_impl_unittest.cc ('k') | cc/test/fake_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 explicit FakeProxy(scoped_ptr<Thread> implThread) : Proxy(implThread.Pass()) { }
19
20 virtual bool compositeAndReadback(void *pixels, const gfx::Rect&) OVERRIDE;
21 virtual void startPageScaleAnimation(gfx::Vector2d targetPosition, bool useA nchor, 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
OLDNEW
« no previous file with comments | « cc/solid_color_layer_impl_unittest.cc ('k') | cc/test/fake_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698