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

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: Created 8 years 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/time.h" 9 #include "base/time.h"
10 #include "cc/animation_events.h" 10 #include "cc/animation_events.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee ded, RendererCapabilities*); 125 void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee ded, RendererCapabilities*);
126 void layerTreeHostClosedOnImplThread(CompletionEvent*); 126 void layerTreeHostClosedOnImplThread(CompletionEvent*);
127 void manageTilesOnImplThread(); 127 void manageTilesOnImplThread();
128 void setFullRootLayerDamageOnImplThread(); 128 void setFullRootLayerDamageOnImplThread();
129 void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*); 129 void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*);
130 void recreateOutputSurfaceOnImplThread(CompletionEvent*, scoped_ptr<OutputSu rface>, bool* recreateSucceeded, RendererCapabilities*); 130 void recreateOutputSurfaceOnImplThread(CompletionEvent*, scoped_ptr<OutputSu rface>, bool* recreateSucceeded, RendererCapabilities*);
131 void renderingStatsOnImplThread(CompletionEvent*, RenderingStats*); 131 void renderingStatsOnImplThread(CompletionEvent*, RenderingStats*);
132 ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool for cedDraw); 132 ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool for cedDraw);
133 void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*); 133 void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*);
134 void setNeedsForcedCommitOnImplThread(); 134 void setNeedsForcedCommitOnImplThread();
135 void checkLostOutputSurfaceOnImplThread();
jamesr 2012/12/18 05:44:41 naming nit: checkOutputSurfaceStatus ?
danakj 2012/12/18 21:26:59 Done.
136 void loseOutputSurfaceOnImplThread();
135 void commitPendingOnImplThreadForTesting(CommitPendingRequest* request); 137 void commitPendingOnImplThreadForTesting(CommitPendingRequest* request);
136 138
137 // Accessed on main thread only. 139 // Accessed on main thread only.
138 bool m_animateRequested; // Set only when setNeedsAnimate is called. 140 bool m_animateRequested; // Set only when setNeedsAnimate is called.
139 bool m_commitRequested; // Set only when setNeedsCommit is called. 141 bool m_commitRequested; // Set only when setNeedsCommit is called.
140 bool m_commitRequestSentToImplThread; // Set by setNeedsCommit and setNeedsA nimate. 142 bool m_commitRequestSentToImplThread; // Set by setNeedsCommit and setNeedsA nimate.
141 base::CancelableClosure m_outputSurfaceRecreationCallback; 143 base::CancelableClosure m_outputSurfaceRecreationCallback;
142 LayerTreeHost* m_layerTreeHost; 144 LayerTreeHost* m_layerTreeHost;
143 bool m_rendererInitialized; 145 bool m_rendererInitialized;
144 RendererCapabilities m_RendererCapabilitiesMainThreadCopy; 146 RendererCapabilities m_RendererCapabilitiesMainThreadCopy;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 base::TimeDelta m_totalCommitTime; 183 base::TimeDelta m_totalCommitTime;
182 size_t m_totalCommitCount; 184 size_t m_totalCommitCount;
183 185
184 bool m_deferCommits; 186 bool m_deferCommits;
185 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; 187 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit;
186 }; 188 };
187 189
188 } // namespace cc 190 } // namespace cc
189 191
190 #endif // CC_THREAD_PROXY_H_ 192 #endif // CC_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698