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

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

Issue 817603002: cc: Make scheduling be driven by vsync for android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 void DidSwapBuffersOnImplThread() override; 187 void DidSwapBuffersOnImplThread() override;
188 void DidSwapBuffersCompleteOnImplThread() override; 188 void DidSwapBuffersCompleteOnImplThread() override;
189 void OnCanDrawStateChanged(bool can_draw) override; 189 void OnCanDrawStateChanged(bool can_draw) override;
190 void NotifyReadyToActivate() override; 190 void NotifyReadyToActivate() override;
191 void NotifyReadyToDraw() override; 191 void NotifyReadyToDraw() override;
192 // Please call these 3 functions through 192 // Please call these 3 functions through
193 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and 193 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
194 // SetNeedsAnimate(). 194 // SetNeedsAnimate().
195 void SetNeedsRedrawOnImplThread() override; 195 void SetNeedsRedrawOnImplThread() override;
196 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; 196 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override;
197 void OutputSurfaceDidRequestDraw() override;
197 void SetNeedsAnimateOnImplThread() override; 198 void SetNeedsAnimateOnImplThread() override;
198 void SetNeedsPrepareTilesOnImplThread() override; 199 void SetNeedsPrepareTilesOnImplThread() override;
199 void SetNeedsCommitOnImplThread() override; 200 void SetNeedsCommitOnImplThread() override;
200 void PostAnimationEventsToMainThreadOnImplThread( 201 void PostAnimationEventsToMainThreadOnImplThread(
201 scoped_ptr<AnimationEventsVector> queue) override; 202 scoped_ptr<AnimationEventsVector> queue) override;
202 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, 203 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes,
203 int priority_cutoff) override; 204 int priority_cutoff) override;
204 bool IsInsideDraw() override; 205 bool IsInsideDraw() override;
205 void RenewTreePriority() override; 206 void RenewTreePriority() override;
206 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, 207 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade,
207 base::TimeDelta delay) override; 208 base::TimeDelta delay) override;
208 void DidActivateSyncTree() override; 209 void DidActivateSyncTree() override;
209 void DidPrepareTiles() override; 210 void DidPrepareTiles() override;
210 211
211 // SchedulerClient implementation 212 // SchedulerClient implementation
212 void WillBeginImplFrame(const BeginFrameArgs& args) override; 213 void WillBeginImplFrame(const BeginFrameArgs& args) override;
213 void ScheduledActionSendBeginMainFrame() override; 214 void ScheduledActionSendBeginMainFrame() override;
214 DrawResult ScheduledActionDrawAndSwapIfPossible() override; 215 DrawResult ScheduledActionDrawAndSwapIfPossible() override;
215 DrawResult ScheduledActionDrawAndSwapForced() override; 216 DrawResult ScheduledActionDrawAndSwapForced() override;
216 void ScheduledActionAnimate() override; 217 void ScheduledActionAnimate() override;
217 void ScheduledActionCommit() override; 218 void ScheduledActionCommit() override;
218 void ScheduledActionActivateSyncTree() override; 219 void ScheduledActionActivateSyncTree() override;
219 void ScheduledActionBeginOutputSurfaceCreation() override; 220 void ScheduledActionBeginOutputSurfaceCreation() override;
220 void ScheduledActionPrepareTiles() override; 221 void ScheduledActionPrepareTiles() override;
222 void ScheduledActionInvalidateOutputSurface() override;
221 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; 223 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override;
222 base::TimeDelta DrawDurationEstimate() override; 224 base::TimeDelta DrawDurationEstimate() override;
223 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; 225 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override;
224 base::TimeDelta CommitToActivateDurationEstimate() override; 226 base::TimeDelta CommitToActivateDurationEstimate() override;
225 void DidBeginImplFrameDeadline() override; 227 void DidBeginImplFrameDeadline() override;
226 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; 228 void SendBeginFramesToChildren(const BeginFrameArgs& args) override;
227 229
228 // ResourceUpdateControllerClient implementation 230 // ResourceUpdateControllerClient implementation
229 void ReadyToFinalizeTextureUpdates() override; 231 void ReadyToFinalizeTextureUpdates() override;
230 232
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 298
297 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 299 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
298 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 300 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
299 301
300 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 302 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
301 }; 303 };
302 304
303 } // namespace cc 305 } // namespace cc
304 306
305 #endif // CC_TREES_THREAD_PROXY_H_ 307 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698