Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: cc/thread_proxy.h

Issue 12212007: cc: Route offscreen context creation for compositor to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Back to a single OffscreenContext class Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 CompletionEvent completion; 115 CompletionEvent completion;
116 bool success; 116 bool success;
117 void* pixels; 117 void* pixels;
118 gfx::Rect rect; 118 gfx::Rect rect;
119 }; 119 };
120 struct CommitPendingRequest { 120 struct CommitPendingRequest {
121 CompletionEvent completion; 121 CompletionEvent completion;
122 bool commitPending; 122 bool commitPending;
123 }; 123 };
124 void forceBeginFrameOnImplThread(CompletionEvent*); 124 void forceBeginFrameOnImplThread(CompletionEvent*);
125 void beginFrameCompleteOnImplThread(CompletionEvent*, ResourceUpdateQueue*); 125 void beginFrameCompleteOnImplThread(CompletionEvent*, ResourceUpdateQueue*, WebKit::WebGraphicsContext3D* offscreenContext3d, GrContext* offscreenGrContext) ;
126 void beginFrameAbortedOnImplThread(); 126 void beginFrameAbortedOnImplThread();
127 void requestReadbackOnImplThread(ReadbackRequest*); 127 void requestReadbackOnImplThread(ReadbackRequest*);
128 void requestStartPageScaleAnimationOnImplThread(gfx::Vector2d targetOffset, bool useAnchor, float scale, base::TimeDelta duration); 128 void requestStartPageScaleAnimationOnImplThread(gfx::Vector2d targetOffset, bool useAnchor, float scale, base::TimeDelta duration);
129 void finishAllRenderingOnImplThread(CompletionEvent*); 129 void finishAllRenderingOnImplThread(CompletionEvent*);
130 void initializeImplOnImplThread(CompletionEvent*, InputHandler*); 130 void initializeImplOnImplThread(CompletionEvent*, InputHandler*);
131 void setSurfaceReadyOnImplThread(); 131 void setSurfaceReadyOnImplThread();
132 void setVisibleOnImplThread(CompletionEvent*, bool); 132 void setVisibleOnImplThread(CompletionEvent*, bool);
133 void initializeOutputSurfaceOnImplThread(scoped_ptr<OutputSurface>); 133 void initializeOutputSurfaceOnImplThread(scoped_ptr<OutputSurface>);
134 void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee ded, RendererCapabilities*); 134 void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee ded, RendererCapabilities*);
135 void layerTreeHostClosedOnImplThread(CompletionEvent*); 135 void layerTreeHostClosedOnImplThread(CompletionEvent*);
136 void manageTilesOnImplThread(); 136 void manageTilesOnImplThread();
137 void setFullRootLayerDamageOnImplThread(); 137 void setFullRootLayerDamageOnImplThread();
138 void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*); 138 void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*);
139 void recreateOutputSurfaceOnImplThread(CompletionEvent*, scoped_ptr<OutputSu rface>, bool* recreateSucceeded, RendererCapabilities*); 139 void recreateOutputSurfaceOnImplThread(CompletionEvent*, scoped_ptr<OutputSu rface>, WebKit::WebGraphicsContext3D* offscreenContext3d, GrContext* offscreenGr Context, bool* recreateSucceeded, RendererCapabilities*);
140 void renderingStatsOnImplThread(CompletionEvent*, RenderingStats*); 140 void renderingStatsOnImplThread(CompletionEvent*, RenderingStats*);
141 ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool for cedDraw); 141 ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool for cedDraw);
142 void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*); 142 void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*);
143 void setNeedsForcedCommitOnImplThread(); 143 void setNeedsForcedCommitOnImplThread();
144 void checkOutputSurfaceStatusOnImplThread(); 144 void checkOutputSurfaceStatusOnImplThread();
145 void commitPendingOnImplThreadForTesting(CommitPendingRequest* request); 145 void commitPendingOnImplThreadForTesting(CommitPendingRequest* request);
146 void capturePictureOnImplThread(CompletionEvent*, skia::RefPtr<SkPicture>*); 146 void capturePictureOnImplThread(CompletionEvent*, skia::RefPtr<SkPicture>*);
147 void renewTreePriorityOnImplThread(); 147 void renewTreePriorityOnImplThread();
148 void didSwapUseIncompleteTileOnImplThread(); 148 void didSwapUseIncompleteTileOnImplThread();
149 149
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 bool m_deferCommits; 207 bool m_deferCommits;
208 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; 208 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit;
209 209
210 base::TimeTicks m_smoothnessTakesPriorityExpirationTime; 210 base::TimeTicks m_smoothnessTakesPriorityExpirationTime;
211 bool m_renewTreePriorityOnImplThreadPending; 211 bool m_renewTreePriorityOnImplThreadPending;
212 }; 212 };
213 213
214 } // namespace cc 214 } // namespace cc
215 215
216 #endif // CC_THREAD_PROXY_H_ 216 #endif // CC_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698