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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 // LayerTreeHostImplClient implementation | 50 // LayerTreeHostImplClient implementation |
51 virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE; | 51 virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE; |
52 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE; | 52 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE; |
53 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe
lta interval) OVERRIDE { } | 53 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe
lta interval) OVERRIDE { } |
54 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { } | 54 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { } |
55 virtual void onHasPendingTreeStateChanged(bool havePendingTree) OVERRIDE; | 55 virtual void onHasPendingTreeStateChanged(bool havePendingTree) OVERRIDE; |
56 virtual void setNeedsRedrawOnImplThread() OVERRIDE; | 56 virtual void setNeedsRedrawOnImplThread() OVERRIDE; |
57 virtual void didUploadVisibleHighResolutionTileOnImplThread() OVERRIDE; | 57 virtual void didUploadVisibleHighResolutionTileOnImplThread() OVERRIDE; |
58 virtual void setNeedsCommitOnImplThread() OVERRIDE; | 58 virtual void setNeedsCommitOnImplThread() OVERRIDE; |
59 virtual void setNeedsManageTilesOnImplThread() OVERRIDE; | 59 virtual void setNeedsManageTilesOnImplThread() OVERRIDE; |
| 60 virtual void setNeedsCheckForCompletedRasterTasksOnImplThread() OVERRIDE; |
60 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio
nEventsVector>, base::Time wallClockTime) OVERRIDE; | 61 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio
nEventsVector>, base::Time wallClockTime) OVERRIDE; |
61 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int
priorityCutoff) OVERRIDE; | 62 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int
priorityCutoff) OVERRIDE; |
62 virtual void reduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; | 63 virtual void reduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; |
63 virtual void sendManagedMemoryStats() OVERRIDE; | 64 virtual void sendManagedMemoryStats() OVERRIDE; |
64 virtual bool isInsideDraw() OVERRIDE; | 65 virtual bool isInsideDraw() OVERRIDE; |
65 virtual void renewTreePriority() OVERRIDE { } | 66 virtual void renewTreePriority() OVERRIDE { } |
66 | 67 |
67 // Called by the legacy path where RenderWidget does the scheduling. | 68 // Called by the legacy path where RenderWidget does the scheduling. |
68 void compositeImmediately(); | 69 void compositeImmediately(); |
69 | 70 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 { | 154 { |
154 } | 155 } |
155 private: | 156 private: |
156 DebugScopedSetImplThread m_implThread; | 157 DebugScopedSetImplThread m_implThread; |
157 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; | 158 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; |
158 }; | 159 }; |
159 | 160 |
160 } // namespace cc | 161 } // namespace cc |
161 | 162 |
162 #endif // CC_SINGLE_THREAD_PROXY_H_ | 163 #endif // CC_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |