OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_SINGLE_THREAD_PROXY_H_ | 5 #ifndef CC_SINGLE_THREAD_PROXY_H_ |
6 #define CC_SINGLE_THREAD_PROXY_H_ | 6 #define CC_SINGLE_THREAD_PROXY_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 virtual void setNeedsRedraw() OVERRIDE; | 38 virtual void setNeedsRedraw() OVERRIDE; |
39 virtual void setDeferCommits(bool) OVERRIDE; | 39 virtual void setDeferCommits(bool) OVERRIDE; |
40 virtual bool commitRequested() const OVERRIDE; | 40 virtual bool commitRequested() const OVERRIDE; |
41 virtual void mainThreadHasStoppedFlinging() OVERRIDE { } | 41 virtual void mainThreadHasStoppedFlinging() OVERRIDE { } |
42 virtual void start() OVERRIDE; | 42 virtual void start() OVERRIDE; |
43 virtual void stop() OVERRIDE; | 43 virtual void stop() OVERRIDE; |
44 virtual size_t maxPartialTextureUpdates() const OVERRIDE; | 44 virtual size_t maxPartialTextureUpdates() const OVERRIDE; |
45 virtual void acquireLayerTextures() OVERRIDE { } | 45 virtual void acquireLayerTextures() OVERRIDE { } |
46 virtual void forceSerializeOnSwapBuffers() OVERRIDE; | 46 virtual void forceSerializeOnSwapBuffers() OVERRIDE; |
47 virtual bool commitPendingForTesting() OVERRIDE; | 47 virtual bool commitPendingForTesting() OVERRIDE; |
| 48 virtual skia::RefPtr<SkPicture> capturePicture() OVERRIDE; |
48 | 49 |
49 // LayerTreeHostImplClient implementation | 50 // LayerTreeHostImplClient implementation |
50 virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE { } | 51 virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE { } |
51 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE; | 52 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE; |
52 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe
lta interval) OVERRIDE { } | 53 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe
lta interval) OVERRIDE { } |
53 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { } | 54 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { } |
54 virtual void onHasPendingTreeStateChanged(bool havePendingTree) OVERRIDE; | 55 virtual void onHasPendingTreeStateChanged(bool havePendingTree) OVERRIDE; |
55 virtual void setNeedsRedrawOnImplThread() OVERRIDE; | 56 virtual void setNeedsRedrawOnImplThread() OVERRIDE; |
56 virtual void setNeedsCommitOnImplThread() OVERRIDE; | 57 virtual void setNeedsCommitOnImplThread() OVERRIDE; |
57 virtual void setNeedsManageTilesOnImplThread() OVERRIDE; | 58 virtual void setNeedsManageTilesOnImplThread() OVERRIDE; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 { | 147 { |
147 } | 148 } |
148 private: | 149 private: |
149 DebugScopedSetImplThread m_implThread; | 150 DebugScopedSetImplThread m_implThread; |
150 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; | 151 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; |
151 }; | 152 }; |
152 | 153 |
153 } // namespace cc | 154 } // namespace cc |
154 | 155 |
155 #endif // CC_SINGLE_THREAD_PROXY_H_ | 156 #endif // CC_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |