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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 CompletionEvent completion; | 116 CompletionEvent completion; |
117 bool success; | 117 bool success; |
118 void* pixels; | 118 void* pixels; |
119 gfx::Rect rect; | 119 gfx::Rect rect; |
120 }; | 120 }; |
121 struct CommitPendingRequest { | 121 struct CommitPendingRequest { |
122 CompletionEvent completion; | 122 CompletionEvent completion; |
123 bool commitPending; | 123 bool commitPending; |
124 }; | 124 }; |
125 void forceBeginFrameOnImplThread(CompletionEvent*); | 125 void forceBeginFrameOnImplThread(CompletionEvent*); |
126 void beginFrameCompleteOnImplThread(CompletionEvent*, ResourceUpdateQueue*); | 126 void beginFrameCompleteOnImplThread(CompletionEvent*, ResourceUpdateQueue*,
WebKit::WebGraphicsContext3D* offscreenContext3d, GrContext* offscreenGrContext)
; |
127 void beginFrameAbortedOnImplThread(); | 127 void beginFrameAbortedOnImplThread(); |
128 void requestReadbackOnImplThread(ReadbackRequest*); | 128 void requestReadbackOnImplThread(ReadbackRequest*); |
129 void requestStartPageScaleAnimationOnImplThread(gfx::Vector2d targetOffset,
bool useAnchor, float scale, base::TimeDelta duration); | 129 void requestStartPageScaleAnimationOnImplThread(gfx::Vector2d targetOffset,
bool useAnchor, float scale, base::TimeDelta duration); |
130 void finishAllRenderingOnImplThread(CompletionEvent*); | 130 void finishAllRenderingOnImplThread(CompletionEvent*); |
131 void initializeImplOnImplThread(CompletionEvent*, InputHandler*); | 131 void initializeImplOnImplThread(CompletionEvent*, InputHandler*); |
132 void setSurfaceReadyOnImplThread(); | 132 void setSurfaceReadyOnImplThread(); |
133 void setVisibleOnImplThread(CompletionEvent*, bool); | 133 void setVisibleOnImplThread(CompletionEvent*, bool); |
134 void initializeOutputSurfaceOnImplThread(scoped_ptr<OutputSurface>); | 134 void initializeOutputSurfaceOnImplThread(scoped_ptr<OutputSurface>); |
135 void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee
ded, RendererCapabilities*); | 135 void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee
ded, RendererCapabilities*); |
136 void layerTreeHostClosedOnImplThread(CompletionEvent*); | 136 void layerTreeHostClosedOnImplThread(CompletionEvent*); |
137 void manageTilesOnImplThread(); | 137 void manageTilesOnImplThread(); |
138 void setFullRootLayerDamageOnImplThread(); | 138 void setFullRootLayerDamageOnImplThread(); |
139 void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*); | 139 void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*); |
140 void recreateOutputSurfaceOnImplThread(CompletionEvent*, scoped_ptr<OutputSu
rface>, bool* recreateSucceeded, RendererCapabilities*); | 140 void recreateOutputSurfaceOnImplThread(CompletionEvent*, scoped_ptr<OutputSu
rface>, WebKit::WebGraphicsContext3D* offscreenContext3d, GrContext* offscreenGr
Context, bool* recreateSucceeded, RendererCapabilities*); |
141 void renderingStatsOnImplThread(CompletionEvent*, RenderingStats*); | 141 void renderingStatsOnImplThread(CompletionEvent*, RenderingStats*); |
142 ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool for
cedDraw); | 142 ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool for
cedDraw); |
143 void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*); | 143 void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*); |
144 void setNeedsForcedCommitOnImplThread(); | 144 void setNeedsForcedCommitOnImplThread(); |
145 void checkOutputSurfaceStatusOnImplThread(); | 145 void checkOutputSurfaceStatusOnImplThread(); |
146 void commitPendingOnImplThreadForTesting(CommitPendingRequest* request); | 146 void commitPendingOnImplThreadForTesting(CommitPendingRequest* request); |
147 void capturePictureOnImplThread(CompletionEvent*, skia::RefPtr<SkPicture>*); | 147 void capturePictureOnImplThread(CompletionEvent*, skia::RefPtr<SkPicture>*); |
148 void asValueOnImplThread(CompletionEvent*, base::DictionaryValue*) const; | 148 void asValueOnImplThread(CompletionEvent*, base::DictionaryValue*) const; |
149 void renewTreePriorityOnImplThread(); | 149 void renewTreePriorityOnImplThread(); |
150 void didSwapUseIncompleteTileOnImplThread(); | 150 void didSwapUseIncompleteTileOnImplThread(); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 bool m_deferCommits; | 209 bool m_deferCommits; |
210 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; | 210 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; |
211 | 211 |
212 base::TimeTicks m_smoothnessTakesPriorityExpirationTime; | 212 base::TimeTicks m_smoothnessTakesPriorityExpirationTime; |
213 bool m_renewTreePriorityOnImplThreadPending; | 213 bool m_renewTreePriorityOnImplThreadPending; |
214 }; | 214 }; |
215 | 215 |
216 } // namespace cc | 216 } // namespace cc |
217 | 217 |
218 #endif // CC_THREAD_PROXY_H_ | 218 #endif // CC_THREAD_PROXY_H_ |
OLD | NEW |