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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 virtual void stop() OVERRIDE; | 44 virtual void stop() OVERRIDE; |
45 virtual size_t maxPartialTextureUpdates() const OVERRIDE; | 45 virtual size_t maxPartialTextureUpdates() const OVERRIDE; |
46 virtual void acquireLayerTextures() OVERRIDE { } | 46 virtual void acquireLayerTextures() OVERRIDE { } |
47 virtual void forceSerializeOnSwapBuffers() OVERRIDE; | 47 virtual void forceSerializeOnSwapBuffers() OVERRIDE; |
48 virtual skia::RefPtr<SkPicture> capturePicture() OVERRIDE; | 48 virtual skia::RefPtr<SkPicture> capturePicture() OVERRIDE; |
49 virtual scoped_ptr<base::Value> asValue() const OVERRIDE; | 49 virtual scoped_ptr<base::Value> asValue() const OVERRIDE; |
50 virtual bool commitPendingForTesting() OVERRIDE; | 50 virtual bool commitPendingForTesting() OVERRIDE; |
51 | 51 |
52 // LayerTreeHostImplClient implementation | 52 // LayerTreeHostImplClient implementation |
53 virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE; | 53 virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE; |
54 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE; | 54 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { } |
55 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe
lta interval) OVERRIDE { } | 55 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe
lta interval) OVERRIDE { } |
56 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { } | 56 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { } |
57 virtual void onHasPendingTreeStateChanged(bool havePendingTree) OVERRIDE; | 57 virtual void onHasPendingTreeStateChanged(bool havePendingTree) OVERRIDE; |
58 virtual void setNeedsRedrawOnImplThread() OVERRIDE; | 58 virtual void setNeedsRedrawOnImplThread() OVERRIDE; |
59 virtual void didUploadVisibleHighResolutionTileOnImplThread() OVERRIDE; | 59 virtual void didUploadVisibleHighResolutionTileOnImplThread() OVERRIDE; |
60 virtual void setNeedsCommitOnImplThread() OVERRIDE; | 60 virtual void setNeedsCommitOnImplThread() OVERRIDE; |
61 virtual void setNeedsManageTilesOnImplThread() OVERRIDE; | 61 virtual void setNeedsManageTilesOnImplThread() OVERRIDE; |
62 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio
nEventsVector>, base::Time wallClockTime) OVERRIDE; | 62 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio
nEventsVector>, base::Time wallClockTime) OVERRIDE; |
63 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int
priorityCutoff) OVERRIDE; | 63 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int
priorityCutoff) OVERRIDE; |
64 virtual void reduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; | 64 virtual void reduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 { | 156 { |
157 } | 157 } |
158 private: | 158 private: |
159 DebugScopedSetImplThread m_implThread; | 159 DebugScopedSetImplThread m_implThread; |
160 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; | 160 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; |
161 }; | 161 }; |
162 | 162 |
163 } // namespace cc | 163 } // namespace cc |
164 | 164 |
165 #endif // CC_SINGLE_THREAD_PROXY_H_ | 165 #endif // CC_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |