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

Side by Side Diff: cc/trees/single_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, 7 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/layer_tree_settings.cc ('k') | cc/trees/single_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_SINGLE_THREAD_PROXY_H_ 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void DidLoseOutputSurfaceOnImplThread() override; 88 void DidLoseOutputSurfaceOnImplThread() override;
89 void CommitVSyncParameters(base::TimeTicks timebase, 89 void CommitVSyncParameters(base::TimeTicks timebase,
90 base::TimeDelta interval) override; 90 base::TimeDelta interval) override;
91 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; 91 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
92 void SetMaxSwapsPendingOnImplThread(int max) override; 92 void SetMaxSwapsPendingOnImplThread(int max) override;
93 void DidSwapBuffersOnImplThread() override; 93 void DidSwapBuffersOnImplThread() override;
94 void DidSwapBuffersCompleteOnImplThread() override; 94 void DidSwapBuffersCompleteOnImplThread() override;
95 void OnCanDrawStateChanged(bool can_draw) override; 95 void OnCanDrawStateChanged(bool can_draw) override;
96 void NotifyReadyToActivate() override; 96 void NotifyReadyToActivate() override;
97 void NotifyReadyToDraw() override; 97 void NotifyReadyToDraw() override;
98 void SetRequiresHighResToDraw(bool required) override;
98 void SetNeedsRedrawOnImplThread() override; 99 void SetNeedsRedrawOnImplThread() override;
99 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; 100 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override;
100 void SetNeedsAnimateOnImplThread() override; 101 void SetNeedsAnimateOnImplThread() override;
101 void SetNeedsPrepareTilesOnImplThread() override; 102 void SetNeedsPrepareTilesOnImplThread(bool for_commit) override;
102 void SetNeedsCommitOnImplThread() override; 103 void SetNeedsCommitOnImplThread() override;
103 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; 104 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override;
104 void PostAnimationEventsToMainThreadOnImplThread( 105 void PostAnimationEventsToMainThreadOnImplThread(
105 scoped_ptr<AnimationEventsVector> events) override; 106 scoped_ptr<AnimationEventsVector> events) override;
106 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, 107 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes,
107 int priority_cutoff) override; 108 int priority_cutoff) override;
108 bool IsInsideDraw() override; 109 bool IsInsideDraw() override;
109 void RenewTreePriority() override {} 110 void RenewTreePriority() override {}
110 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, 111 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task,
111 base::TimeDelta delay) override {} 112 base::TimeDelta delay) override {}
112 void DidActivateSyncTree() override; 113 void DidActivateSyncTree() override;
113 void DidPrepareTiles() override;
114 void DidCompletePageScaleAnimationOnImplThread() override; 114 void DidCompletePageScaleAnimationOnImplThread() override;
115 void OnDrawForOutputSurface() override; 115 void OnDrawForOutputSurface() override;
116 116
117 void SetDebugState(const LayerTreeDebugState& debug_state) override {} 117 void SetDebugState(const LayerTreeDebugState& debug_state) override {}
118 118
119 void RequestNewOutputSurface(); 119 void RequestNewOutputSurface();
120 120
121 // Called by the legacy path where RenderWidget does the scheduling. 121 // Called by the legacy path where RenderWidget does the scheduling.
122 void CompositeImmediately(base::TimeTicks frame_begin_time); 122 void CompositeImmediately(base::TimeTicks frame_begin_time);
123 123
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 private: 237 private:
238 DebugScopedSetImplThread impl_thread_; 238 DebugScopedSetImplThread impl_thread_;
239 DebugScopedSetMainThreadBlocked main_thread_blocked_; 239 DebugScopedSetMainThreadBlocked main_thread_blocked_;
240 240
241 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 241 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
242 }; 242 };
243 243
244 } // namespace cc 244 } // namespace cc
245 245
246 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 246 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698