| 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 23 matching lines...) Expand all Loading... |
| 34 // Proxy implementation | 34 // Proxy implementation |
| 35 virtual bool CompositeAndReadback(void* pixels, gfx::Rect rect) OVERRIDE; | 35 virtual bool CompositeAndReadback(void* pixels, gfx::Rect rect) OVERRIDE; |
| 36 virtual void StartPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnc
hor, float scale, base::TimeDelta duration) OVERRIDE; | 36 virtual void StartPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnc
hor, float scale, base::TimeDelta duration) OVERRIDE; |
| 37 virtual void FinishAllRendering() OVERRIDE; | 37 virtual void FinishAllRendering() OVERRIDE; |
| 38 virtual bool IsStarted() const OVERRIDE; | 38 virtual bool IsStarted() const OVERRIDE; |
| 39 virtual bool InitializeOutputSurface() OVERRIDE; | 39 virtual bool InitializeOutputSurface() OVERRIDE; |
| 40 virtual void SetSurfaceReady() OVERRIDE; | 40 virtual void SetSurfaceReady() OVERRIDE; |
| 41 virtual void SetVisible(bool) OVERRIDE; | 41 virtual void SetVisible(bool) OVERRIDE; |
| 42 virtual bool InitializeRenderer() OVERRIDE; | 42 virtual bool InitializeRenderer() OVERRIDE; |
| 43 virtual bool RecreateOutputSurface() OVERRIDE; | 43 virtual bool RecreateOutputSurface() OVERRIDE; |
| 44 virtual void GetRenderingStats(RenderingStats* stats) OVERRIDE; | |
| 45 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE
; | 44 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE
; |
| 46 virtual void SetNeedsAnimate() OVERRIDE; | 45 virtual void SetNeedsAnimate() OVERRIDE; |
| 47 virtual void SetNeedsCommit() OVERRIDE; | 46 virtual void SetNeedsCommit() OVERRIDE; |
| 48 virtual void SetNeedsRedraw() OVERRIDE; | 47 virtual void SetNeedsRedraw() OVERRIDE; |
| 49 virtual void SetDeferCommits(bool) OVERRIDE; | 48 virtual void SetDeferCommits(bool) OVERRIDE; |
| 50 virtual bool CommitRequested() const OVERRIDE; | 49 virtual bool CommitRequested() const OVERRIDE; |
| 51 virtual void MainThreadHasStoppedFlinging() OVERRIDE; | 50 virtual void MainThreadHasStoppedFlinging() OVERRIDE; |
| 52 virtual void Start() OVERRIDE; | 51 virtual void Start() OVERRIDE; |
| 53 virtual void Stop() OVERRIDE; | 52 virtual void Stop() OVERRIDE; |
| 54 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; | 53 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 void initializeImplOnImplThread(CompletionEvent*, InputHandler*); | 131 void initializeImplOnImplThread(CompletionEvent*, InputHandler*); |
| 133 void setSurfaceReadyOnImplThread(); | 132 void setSurfaceReadyOnImplThread(); |
| 134 void setVisibleOnImplThread(CompletionEvent*, bool); | 133 void setVisibleOnImplThread(CompletionEvent*, bool); |
| 135 void initializeOutputSurfaceOnImplThread(scoped_ptr<OutputSurface>); | 134 void initializeOutputSurfaceOnImplThread(scoped_ptr<OutputSurface>); |
| 136 void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee
ded, RendererCapabilities*); | 135 void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee
ded, RendererCapabilities*); |
| 137 void layerTreeHostClosedOnImplThread(CompletionEvent*); | 136 void layerTreeHostClosedOnImplThread(CompletionEvent*); |
| 138 void manageTilesOnImplThread(); | 137 void manageTilesOnImplThread(); |
| 139 void setFullRootLayerDamageOnImplThread(); | 138 void setFullRootLayerDamageOnImplThread(); |
| 140 void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*); | 139 void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*); |
| 141 void recreateOutputSurfaceOnImplThread(CompletionEvent*, scoped_ptr<OutputSu
rface>, scoped_refptr<cc::ContextProvider> offscreenContextProvider, bool* recre
ateSucceeded, RendererCapabilities*); | 140 void recreateOutputSurfaceOnImplThread(CompletionEvent*, scoped_ptr<OutputSu
rface>, scoped_refptr<cc::ContextProvider> offscreenContextProvider, bool* recre
ateSucceeded, RendererCapabilities*); |
| 142 void renderingStatsOnImplThread(CompletionEvent*, RenderingStats*); | |
| 143 ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool for
cedDraw); | 141 ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool for
cedDraw); |
| 144 void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*); | 142 void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*); |
| 145 void setNeedsForcedCommitOnImplThread(); | 143 void setNeedsForcedCommitOnImplThread(); |
| 146 void checkOutputSurfaceStatusOnImplThread(); | 144 void checkOutputSurfaceStatusOnImplThread(); |
| 147 void commitPendingOnImplThreadForTesting(CommitPendingRequest* request); | 145 void commitPendingOnImplThreadForTesting(CommitPendingRequest* request); |
| 148 void capturePictureOnImplThread(CompletionEvent*, skia::RefPtr<SkPicture>*); | 146 void capturePictureOnImplThread(CompletionEvent*, skia::RefPtr<SkPicture>*); |
| 149 void asValueOnImplThread(CompletionEvent*, base::DictionaryValue*) const; | 147 void asValueOnImplThread(CompletionEvent*, base::DictionaryValue*) const; |
| 150 void renewTreePriorityOnImplThread(); | 148 void renewTreePriorityOnImplThread(); |
| 151 void didSwapUseIncompleteTileOnImplThread(); | 149 void didSwapUseIncompleteTileOnImplThread(); |
| 152 | 150 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 196 |
| 199 scoped_ptr<ResourceUpdateController> m_currentResourceUpdateControllerOnImpl
Thread; | 197 scoped_ptr<ResourceUpdateController> m_currentResourceUpdateControllerOnImpl
Thread; |
| 200 | 198 |
| 201 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. | 199 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. |
| 202 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; | 200 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; |
| 203 | 201 |
| 204 bool m_renderVSyncEnabled; | 202 bool m_renderVSyncEnabled; |
| 205 | 203 |
| 206 bool m_insideDraw; | 204 bool m_insideDraw; |
| 207 | 205 |
| 208 base::TimeDelta m_totalCommitTime; | |
| 209 size_t m_totalCommitCount; | |
| 210 | |
| 211 bool m_deferCommits; | 206 bool m_deferCommits; |
| 212 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; | 207 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; |
| 213 | 208 |
| 214 base::TimeTicks m_smoothnessTakesPriorityExpirationTime; | 209 base::TimeTicks m_smoothnessTakesPriorityExpirationTime; |
| 215 bool m_renewTreePriorityOnImplThreadPending; | 210 bool m_renewTreePriorityOnImplThreadPending; |
| 216 }; | 211 }; |
| 217 | 212 |
| 218 } // namespace cc | 213 } // namespace cc |
| 219 | 214 |
| 220 #endif // CC_THREAD_PROXY_H_ | 215 #endif // CC_THREAD_PROXY_H_ |
| OLD | NEW |