| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 133     void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee
     ded, RendererCapabilities*); | 133     void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee
     ded, RendererCapabilities*); | 
| 134     void layerTreeHostClosedOnImplThread(CompletionEvent*); | 134     void layerTreeHostClosedOnImplThread(CompletionEvent*); | 
| 135     void manageTilesOnImplThread(); | 135     void manageTilesOnImplThread(); | 
| 136     void setFullRootLayerDamageOnImplThread(); | 136     void setFullRootLayerDamageOnImplThread(); | 
| 137     void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*); | 137     void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*); | 
| 138     void recreateOutputSurfaceOnImplThread(CompletionEvent*, scoped_ptr<OutputSu
     rface>, bool* recreateSucceeded, RendererCapabilities*); | 138     void recreateOutputSurfaceOnImplThread(CompletionEvent*, scoped_ptr<OutputSu
     rface>, bool* recreateSucceeded, RendererCapabilities*); | 
| 139     void renderingStatsOnImplThread(CompletionEvent*, RenderingStats*); | 139     void renderingStatsOnImplThread(CompletionEvent*, RenderingStats*); | 
| 140     ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool for
     cedDraw); | 140     ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool for
     cedDraw); | 
| 141     void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*); | 141     void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*); | 
| 142     void setNeedsForcedCommitOnImplThread(); | 142     void setNeedsForcedCommitOnImplThread(); | 
|  | 143     void checkOutputSurfaceStatusOnImplThread(); | 
| 143     void commitPendingOnImplThreadForTesting(CommitPendingRequest* request); | 144     void commitPendingOnImplThreadForTesting(CommitPendingRequest* request); | 
| 144     void capturePictureOnImplThread(CompletionEvent*, skia::RefPtr<SkPicture>*); | 145     void capturePictureOnImplThread(CompletionEvent*, skia::RefPtr<SkPicture>*); | 
| 145 | 146 | 
| 146     // Accessed on main thread only. | 147     // Accessed on main thread only. | 
| 147     bool m_animateRequested; // Set only when setNeedsAnimate is called. | 148     bool m_animateRequested; // Set only when setNeedsAnimate is called. | 
| 148     bool m_commitRequested; // Set only when setNeedsCommit is called. | 149     bool m_commitRequested; // Set only when setNeedsCommit is called. | 
| 149     bool m_commitRequestSentToImplThread; // Set by setNeedsCommit and setNeedsA
     nimate. | 150     bool m_commitRequestSentToImplThread; // Set by setNeedsCommit and setNeedsA
     nimate. | 
| 150     base::CancelableClosure m_outputSurfaceRecreationCallback; | 151     base::CancelableClosure m_outputSurfaceRecreationCallback; | 
| 151     LayerTreeHost* m_layerTreeHost; | 152     LayerTreeHost* m_layerTreeHost; | 
| 152     bool m_rendererInitialized; | 153     bool m_rendererInitialized; | 
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 200     base::TimeDelta m_totalCommitTime; | 201     base::TimeDelta m_totalCommitTime; | 
| 201     size_t m_totalCommitCount; | 202     size_t m_totalCommitCount; | 
| 202 | 203 | 
| 203     bool m_deferCommits; | 204     bool m_deferCommits; | 
| 204     scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; | 205     scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; | 
| 205 }; | 206 }; | 
| 206 | 207 | 
| 207 }  // namespace cc | 208 }  // namespace cc | 
| 208 | 209 | 
| 209 #endif  // CC_THREAD_PROXY_H_ | 210 #endif  // CC_THREAD_PROXY_H_ | 
| OLD | NEW | 
|---|