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

Side by Side Diff: cc/thread_proxy.h

Issue 11358026: cc: Use base::Passed in ThreadProxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « no previous file | 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 CCThreadProxy_h 5 #ifndef CCThreadProxy_h
6 #define CCThreadProxy_h 6 #define CCThreadProxy_h
7 7
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "cc/animation_events.h" 9 #include "cc/animation_events.h"
10 #include "cc/completion_event.h" 10 #include "cc/completion_event.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 WebKit::WebTransformationMatrix implTransform; 89 WebKit::WebTransformationMatrix implTransform;
90 PrioritizedTextureManager::BackingList evictedContentsTexturesBackings; 90 PrioritizedTextureManager::BackingList evictedContentsTexturesBackings;
91 size_t memoryAllocationLimitBytes; 91 size_t memoryAllocationLimitBytes;
92 }; 92 };
93 scoped_ptr<BeginFrameAndCommitState> m_pendingBeginFrameRequest; 93 scoped_ptr<BeginFrameAndCommitState> m_pendingBeginFrameRequest;
94 94
95 // Called on main thread 95 // Called on main thread
96 void beginFrame(); 96 void beginFrame();
97 void didCommitAndDrawFrame(); 97 void didCommitAndDrawFrame();
98 void didCompleteSwapBuffers(); 98 void didCompleteSwapBuffers();
99 void setAnimationEvents(AnimationEventsVector*, base::Time wallClockTime); 99 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl ockTime);
100 void beginContextRecreation(); 100 void beginContextRecreation();
101 void tryToRecreateContext(); 101 void tryToRecreateContext();
102 102
103 // Called on impl thread 103 // Called on impl thread
104 struct ReadbackRequest { 104 struct ReadbackRequest {
105 CompletionEvent completion; 105 CompletionEvent completion;
106 bool success; 106 bool success;
107 void* pixels; 107 void* pixels;
108 IntRect rect; 108 IntRect rect;
109 }; 109 };
110 void forceBeginFrameOnImplThread(CompletionEvent*); 110 void forceBeginFrameOnImplThread(CompletionEvent*);
111 void beginFrameCompleteOnImplThread(CompletionEvent*, ResourceUpdateQueue*); 111 void beginFrameCompleteOnImplThread(CompletionEvent*, ResourceUpdateQueue*);
112 void beginFrameAbortedOnImplThread(); 112 void beginFrameAbortedOnImplThread();
113 void requestReadbackOnImplThread(ReadbackRequest*); 113 void requestReadbackOnImplThread(ReadbackRequest*);
114 void requestStartPageScaleAnimationOnImplThread(IntSize targetPosition, bool useAnchor, float scale, base::TimeDelta duration); 114 void requestStartPageScaleAnimationOnImplThread(IntSize targetPosition, bool useAnchor, float scale, base::TimeDelta duration);
115 void finishAllRenderingOnImplThread(CompletionEvent*); 115 void finishAllRenderingOnImplThread(CompletionEvent*);
116 void initializeImplOnImplThread(CompletionEvent*, InputHandler*); 116 void initializeImplOnImplThread(CompletionEvent*, InputHandler*);
117 void setSurfaceReadyOnImplThread(); 117 void setSurfaceReadyOnImplThread();
118 void setVisibleOnImplThread(CompletionEvent*, bool); 118 void setVisibleOnImplThread(CompletionEvent*, bool);
119 void initializeContextOnImplThread(GraphicsContext*); 119 void initializeContextOnImplThread(scoped_ptr<GraphicsContext>);
120 void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee ded, RendererCapabilities*); 120 void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee ded, RendererCapabilities*);
121 void layerTreeHostClosedOnImplThread(CompletionEvent*); 121 void layerTreeHostClosedOnImplThread(CompletionEvent*);
122 void setFullRootLayerDamageOnImplThread(); 122 void setFullRootLayerDamageOnImplThread();
123 void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*); 123 void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*);
124 void recreateContextOnImplThread(CompletionEvent*, GraphicsContext*, bool* r ecreateSucceeded, RendererCapabilities*); 124 void recreateContextOnImplThread(CompletionEvent*, scoped_ptr<GraphicsContex t>, bool* recreateSucceeded, RendererCapabilities*);
125 void renderingStatsOnImplThread(CompletionEvent*, RenderingStats*); 125 void renderingStatsOnImplThread(CompletionEvent*, RenderingStats*);
126 ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool for cedDraw); 126 ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool for cedDraw);
127 void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*); 127 void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*);
128 void setNeedsForcedCommitOnImplThread(); 128 void setNeedsForcedCommitOnImplThread();
129 129
130 // Accessed on main thread only. 130 // Accessed on main thread only.
131 bool m_animateRequested; // Set only when setNeedsAnimate is called. 131 bool m_animateRequested; // Set only when setNeedsAnimate is called.
132 bool m_commitRequested; // Set only when setNeedsCommit is called. 132 bool m_commitRequested; // Set only when setNeedsCommit is called.
133 bool m_commitRequestSentToImplThread; // Set by setNeedsCommit and setNeedsA nimate. 133 bool m_commitRequestSentToImplThread; // Set by setNeedsCommit and setNeedsA nimate.
134 bool m_forcedCommitRequested; 134 bool m_forcedCommitRequested;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 base::TimeDelta m_totalCommitTime; 174 base::TimeDelta m_totalCommitTime;
175 size_t m_totalCommitCount; 175 size_t m_totalCommitCount;
176 176
177 bool m_deferCommits; 177 bool m_deferCommits;
178 bool m_deferredCommitPending; 178 bool m_deferredCommitPending;
179 }; 179 };
180 180
181 } // namespace cc 181 } // namespace cc
182 182
183 #endif 183 #endif
OLDNEW
« no previous file with comments | « no previous file | cc/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698