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

Side by Side Diff: cc/thread_proxy.h

Issue 11606012: cc: Unify context losing machinery (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reboot Created 7 years, 11 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
« no previous file with comments | « cc/single_thread_proxy.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « cc/single_thread_proxy.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698