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_THREAD_PROXY_H_ | 5 #ifndef CC_THREAD_PROXY_H_ |
6 #define CC_THREAD_PROXY_H_ | 6 #define CC_THREAD_PROXY_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; | 67 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; |
68 virtual void DidUploadVisibleHighResolutionTileOnImplThread() OVERRIDE; | 68 virtual void DidUploadVisibleHighResolutionTileOnImplThread() OVERRIDE; |
69 virtual void SetNeedsCommitOnImplThread() OVERRIDE; | 69 virtual void SetNeedsCommitOnImplThread() OVERRIDE; |
70 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; | 70 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; |
71 virtual void PostAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio
nEventsVector>, base::Time wallClockTime) OVERRIDE; | 71 virtual void PostAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio
nEventsVector>, base::Time wallClockTime) OVERRIDE; |
72 virtual bool ReduceContentsTextureMemoryOnImplThread(size_t limitBytes, int
priorityCutoff) OVERRIDE; | 72 virtual bool ReduceContentsTextureMemoryOnImplThread(size_t limitBytes, int
priorityCutoff) OVERRIDE; |
73 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; | 73 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; |
74 virtual void SendManagedMemoryStats() OVERRIDE; | 74 virtual void SendManagedMemoryStats() OVERRIDE; |
75 virtual bool IsInsideDraw() OVERRIDE; | 75 virtual bool IsInsideDraw() OVERRIDE; |
76 virtual void RenewTreePriority() OVERRIDE; | 76 virtual void RenewTreePriority() OVERRIDE; |
| 77 virtual void RequestScrollbarAnimationOnImplThread(double delay) OVERRIDE; |
77 | 78 |
78 // SchedulerClient implementation | 79 // SchedulerClient implementation |
79 virtual void scheduledActionBeginFrame() OVERRIDE; | 80 virtual void scheduledActionBeginFrame() OVERRIDE; |
80 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossibl
e() OVERRIDE; | 81 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossibl
e() OVERRIDE; |
81 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced()
OVERRIDE; | 82 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced()
OVERRIDE; |
82 virtual void scheduledActionCommit() OVERRIDE; | 83 virtual void scheduledActionCommit() OVERRIDE; |
83 virtual void scheduledActionCheckForCompletedTileUploads() OVERRIDE; | 84 virtual void scheduledActionCheckForCompletedTileUploads() OVERRIDE; |
84 virtual void scheduledActionActivatePendingTreeIfNeeded() OVERRIDE; | 85 virtual void scheduledActionActivatePendingTreeIfNeeded() OVERRIDE; |
85 virtual void scheduledActionBeginContextRecreation() OVERRIDE; | 86 virtual void scheduledActionBeginContextRecreation() OVERRIDE; |
86 virtual void scheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; | 87 virtual void scheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 void renderingStatsOnImplThread(CompletionEvent*, RenderingStats*); | 143 void renderingStatsOnImplThread(CompletionEvent*, RenderingStats*); |
143 ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool for
cedDraw); | 144 ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool for
cedDraw); |
144 void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*); | 145 void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*); |
145 void setNeedsForcedCommitOnImplThread(); | 146 void setNeedsForcedCommitOnImplThread(); |
146 void checkOutputSurfaceStatusOnImplThread(); | 147 void checkOutputSurfaceStatusOnImplThread(); |
147 void commitPendingOnImplThreadForTesting(CommitPendingRequest* request); | 148 void commitPendingOnImplThreadForTesting(CommitPendingRequest* request); |
148 void capturePictureOnImplThread(CompletionEvent*, skia::RefPtr<SkPicture>*); | 149 void capturePictureOnImplThread(CompletionEvent*, skia::RefPtr<SkPicture>*); |
149 void asValueOnImplThread(CompletionEvent*, base::DictionaryValue*) const; | 150 void asValueOnImplThread(CompletionEvent*, base::DictionaryValue*) const; |
150 void renewTreePriorityOnImplThread(); | 151 void renewTreePriorityOnImplThread(); |
151 void didSwapUseIncompleteTileOnImplThread(); | 152 void didSwapUseIncompleteTileOnImplThread(); |
| 153 void StartScrollbarAnimationOnImplThread(); |
152 | 154 |
153 // Accessed on main thread only. | 155 // Accessed on main thread only. |
154 bool m_animateRequested; // Set only when setNeedsAnimate is called. | 156 bool m_animateRequested; // Set only when setNeedsAnimate is called. |
155 bool m_commitRequested; // Set only when setNeedsCommit is called. | 157 bool m_commitRequested; // Set only when setNeedsCommit is called. |
156 bool m_commitRequestSentToImplThread; // Set by setNeedsCommit and setNeedsA
nimate. | 158 bool m_commitRequestSentToImplThread; // Set by setNeedsCommit and setNeedsA
nimate. |
157 bool m_createdOffscreenContextProvider; // Set by beginFrame. | 159 bool m_createdOffscreenContextProvider; // Set by beginFrame. |
158 base::CancelableClosure m_outputSurfaceRecreationCallback; | 160 base::CancelableClosure m_outputSurfaceRecreationCallback; |
159 LayerTreeHost* m_layerTreeHost; | 161 LayerTreeHost* m_layerTreeHost; |
160 bool m_rendererInitialized; | 162 bool m_rendererInitialized; |
161 RendererCapabilities m_RendererCapabilitiesMainThreadCopy; | 163 RendererCapabilities m_RendererCapabilitiesMainThreadCopy; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 bool m_deferCommits; | 213 bool m_deferCommits; |
212 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; | 214 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; |
213 | 215 |
214 base::TimeTicks m_smoothnessTakesPriorityExpirationTime; | 216 base::TimeTicks m_smoothnessTakesPriorityExpirationTime; |
215 bool m_renewTreePriorityOnImplThreadPending; | 217 bool m_renewTreePriorityOnImplThreadPending; |
216 }; | 218 }; |
217 | 219 |
218 } // namespace cc | 220 } // namespace cc |
219 | 221 |
220 #endif // CC_THREAD_PROXY_H_ | 222 #endif // CC_THREAD_PROXY_H_ |
OLD | NEW |