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

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: Remove the GrContextProvider::ScopedContexts guard classes 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698