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