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

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

Issue 2753843003: Create a new action triggered when a BeginMainFrame is not expected before vsync (Closed)
Patch Set: Add BeginMainFrameNotExpectedUntil to content::CompositorImpl for Android. Created 3 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/proxy_main.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; 65 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override;
66 DrawResult ScheduledActionDrawIfPossible() override; 66 DrawResult ScheduledActionDrawIfPossible() override;
67 DrawResult ScheduledActionDrawForced() override; 67 DrawResult ScheduledActionDrawForced() override;
68 void ScheduledActionCommit() override; 68 void ScheduledActionCommit() override;
69 void ScheduledActionActivateSyncTree() override; 69 void ScheduledActionActivateSyncTree() override;
70 void ScheduledActionBeginCompositorFrameSinkCreation() override; 70 void ScheduledActionBeginCompositorFrameSinkCreation() override;
71 void ScheduledActionPrepareTiles() override; 71 void ScheduledActionPrepareTiles() override;
72 void ScheduledActionInvalidateCompositorFrameSink() override; 72 void ScheduledActionInvalidateCompositorFrameSink() override;
73 void ScheduledActionPerformImplSideInvalidation() override; 73 void ScheduledActionPerformImplSideInvalidation() override;
74 void SendBeginMainFrameNotExpectedSoon() override; 74 void SendBeginMainFrameNotExpectedSoon() override;
75 void ScheduledActionBeginMainFrameNotExpectedUntil(
76 base::TimeTicks time) override;
75 77
76 // LayerTreeHostImplClient implementation 78 // LayerTreeHostImplClient implementation
77 void DidLoseCompositorFrameSinkOnImplThread() override; 79 void DidLoseCompositorFrameSinkOnImplThread() override;
78 void SetBeginFrameSource(BeginFrameSource* source) override; 80 void SetBeginFrameSource(BeginFrameSource* source) override;
79 void DidReceiveCompositorFrameAckOnImplThread() override; 81 void DidReceiveCompositorFrameAckOnImplThread() override;
80 void OnCanDrawStateChanged(bool can_draw) override; 82 void OnCanDrawStateChanged(bool can_draw) override;
81 void NotifyReadyToActivate() override; 83 void NotifyReadyToActivate() override;
82 void NotifyReadyToDraw() override; 84 void NotifyReadyToDraw() override;
83 void SetNeedsRedrawOnImplThread() override; 85 void SetNeedsRedrawOnImplThread() override;
84 void SetNeedsOneBeginImplFrameOnImplThread() override; 86 void SetNeedsOneBeginImplFrameOnImplThread() override;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 private: 244 private:
243 DebugScopedSetImplThread impl_thread_; 245 DebugScopedSetImplThread impl_thread_;
244 DebugScopedSetMainThreadBlocked main_thread_blocked_; 246 DebugScopedSetMainThreadBlocked main_thread_blocked_;
245 247
246 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 248 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
247 }; 249 };
248 250
249 } // namespace cc 251 } // namespace cc
250 252
251 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 253 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/proxy_main.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698