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 "base/memory/ref_counted.h" |
8 #include "cc/layer_tree_host.h" | 9 #include "cc/layer_tree_host.h" |
9 #include "cc/proxy.h" | 10 #include "cc/proxy.h" |
10 #include "cc/thread.h" | 11 #include "cc/thread.h" |
11 | 12 |
12 namespace cc { | 13 namespace cc { |
13 | 14 |
14 class FakeProxy : public Proxy { | 15 class FakeProxy : public Proxy { |
15 public: | 16 public: |
16 explicit FakeProxy(scoped_ptr<Thread> implThread) : Proxy(implThread.Pass())
{ } | 17 explicit FakeProxy(scoped_ptr<Thread> implThread) : Proxy(implThread.Pass())
{ } |
17 | 18 |
(...skipping 14 matching lines...) Expand all Loading... |
32 virtual void setDeferCommits(bool) OVERRIDE { } | 33 virtual void setDeferCommits(bool) OVERRIDE { } |
33 virtual void mainThreadHasStoppedFlinging() OVERRIDE { } | 34 virtual void mainThreadHasStoppedFlinging() OVERRIDE { } |
34 virtual bool commitRequested() const OVERRIDE; | 35 virtual bool commitRequested() const OVERRIDE; |
35 virtual void start() OVERRIDE { } | 36 virtual void start() OVERRIDE { } |
36 virtual void stop() OVERRIDE { } | 37 virtual void stop() OVERRIDE { } |
37 virtual void forceSerializeOnSwapBuffers() OVERRIDE { } | 38 virtual void forceSerializeOnSwapBuffers() OVERRIDE { } |
38 virtual size_t maxPartialTextureUpdates() const OVERRIDE; | 39 virtual size_t maxPartialTextureUpdates() const OVERRIDE; |
39 virtual void acquireLayerTextures() OVERRIDE { } | 40 virtual void acquireLayerTextures() OVERRIDE { } |
40 virtual void loseOutputSurface() OVERRIDE { } | 41 virtual void loseOutputSurface() OVERRIDE { } |
41 virtual bool commitPendingForTesting() OVERRIDE; | 42 virtual bool commitPendingForTesting() OVERRIDE; |
| 43 virtual scoped_refptr<PicturePileImpl> capturePicturePile() OVERRIDE; |
42 | 44 |
43 virtual RendererCapabilities& rendererCapabilities(); | 45 virtual RendererCapabilities& rendererCapabilities(); |
44 void setMaxPartialTextureUpdates(size_t); | 46 void setMaxPartialTextureUpdates(size_t); |
45 | 47 |
46 private: | 48 private: |
47 RendererCapabilities m_capabilities; | 49 RendererCapabilities m_capabilities; |
48 size_t m_maxPartialTextureUpdates; | 50 size_t m_maxPartialTextureUpdates; |
49 }; | 51 }; |
50 | 52 |
51 } // namespace cc | 53 } // namespace cc |
52 | 54 |
53 #endif // CC_TEST_FAKE_PROXY_H_ | 55 #endif // CC_TEST_FAKE_PROXY_H_ |
OLD | NEW |