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

Side by Side Diff: cc/trees/thread_proxy.h

Issue 1131633003: cc: Use multiple PrepareTiles approaches Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/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_TREES_THREAD_PROXY_H_ 5 #ifndef CC_TREES_THREAD_PROXY_H_
6 #define CC_TREES_THREAD_PROXY_H_ 6 #define CC_TREES_THREAD_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 void DidLoseOutputSurfaceOnImplThread() override; 189 void DidLoseOutputSurfaceOnImplThread() override;
190 void CommitVSyncParameters(base::TimeTicks timebase, 190 void CommitVSyncParameters(base::TimeTicks timebase,
191 base::TimeDelta interval) override; 191 base::TimeDelta interval) override;
192 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; 192 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
193 void SetMaxSwapsPendingOnImplThread(int max) override; 193 void SetMaxSwapsPendingOnImplThread(int max) override;
194 void DidSwapBuffersOnImplThread() override; 194 void DidSwapBuffersOnImplThread() override;
195 void DidSwapBuffersCompleteOnImplThread() override; 195 void DidSwapBuffersCompleteOnImplThread() override;
196 void OnCanDrawStateChanged(bool can_draw) override; 196 void OnCanDrawStateChanged(bool can_draw) override;
197 void NotifyReadyToActivate() override; 197 void NotifyReadyToActivate() override;
198 void NotifyReadyToDraw() override; 198 void NotifyReadyToDraw() override;
199 void SetRequiresHighResToDraw(bool required) override;
199 // Please call these 3 functions through 200 // Please call these 3 functions through
200 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and 201 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
201 // SetNeedsAnimate(). 202 // SetNeedsAnimate().
202 void SetNeedsRedrawOnImplThread() override; 203 void SetNeedsRedrawOnImplThread() override;
203 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; 204 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override;
204 void SetNeedsAnimateOnImplThread() override; 205 void SetNeedsAnimateOnImplThread() override;
205 void SetNeedsPrepareTilesOnImplThread() override; 206 void SetNeedsPrepareTilesOnImplThread(bool for_commit) override;
206 void SetNeedsCommitOnImplThread() override; 207 void SetNeedsCommitOnImplThread() override;
207 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; 208 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override;
208 void PostAnimationEventsToMainThreadOnImplThread( 209 void PostAnimationEventsToMainThreadOnImplThread(
209 scoped_ptr<AnimationEventsVector> queue) override; 210 scoped_ptr<AnimationEventsVector> queue) override;
210 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, 211 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes,
211 int priority_cutoff) override; 212 int priority_cutoff) override;
212 bool IsInsideDraw() override; 213 bool IsInsideDraw() override;
213 void RenewTreePriority() override; 214 void RenewTreePriority() override;
214 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, 215 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task,
215 base::TimeDelta delay) override; 216 base::TimeDelta delay) override;
216 void DidActivateSyncTree() override; 217 void DidActivateSyncTree() override;
217 void DidPrepareTiles() override;
218 void DidCompletePageScaleAnimationOnImplThread() override; 218 void DidCompletePageScaleAnimationOnImplThread() override;
219 void OnDrawForOutputSurface() override; 219 void OnDrawForOutputSurface() override;
220 220
221 // SchedulerClient implementation 221 // SchedulerClient implementation
222 void WillBeginImplFrame(const BeginFrameArgs& args) override; 222 void WillBeginImplFrame(const BeginFrameArgs& args) override;
223 void DidFinishImplFrame() override; 223 void DidFinishImplFrame() override;
224 void ScheduledActionSendBeginMainFrame() override; 224 void ScheduledActionSendBeginMainFrame() override;
225 DrawResult ScheduledActionDrawAndSwapIfPossible() override; 225 DrawResult ScheduledActionDrawAndSwapIfPossible() override;
226 DrawResult ScheduledActionDrawAndSwapForced() override; 226 DrawResult ScheduledActionDrawAndSwapForced() override;
227 void ScheduledActionAnimate() override; 227 void ScheduledActionAnimate() override;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 311 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
312 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 312 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
313 313
314 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 314 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
315 }; 315 };
316 316
317 } // namespace cc 317 } // namespace cc
318 318
319 #endif // CC_TREES_THREAD_PROXY_H_ 319 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698