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

Side by Side Diff: cc/trees/proxy_impl.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/layer_tree_host_client.h ('k') | cc/trees/proxy_impl.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PROXY_IMPL_H_ 5 #ifndef CC_TREES_PROXY_IMPL_H_
6 #define CC_TREES_PROXY_IMPL_H_ 6 #define CC_TREES_PROXY_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; 101 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override;
102 DrawResult ScheduledActionDrawIfPossible() override; 102 DrawResult ScheduledActionDrawIfPossible() override;
103 DrawResult ScheduledActionDrawForced() override; 103 DrawResult ScheduledActionDrawForced() override;
104 void ScheduledActionCommit() override; 104 void ScheduledActionCommit() override;
105 void ScheduledActionActivateSyncTree() override; 105 void ScheduledActionActivateSyncTree() override;
106 void ScheduledActionBeginCompositorFrameSinkCreation() override; 106 void ScheduledActionBeginCompositorFrameSinkCreation() override;
107 void ScheduledActionPrepareTiles() override; 107 void ScheduledActionPrepareTiles() override;
108 void ScheduledActionInvalidateCompositorFrameSink() override; 108 void ScheduledActionInvalidateCompositorFrameSink() override;
109 void ScheduledActionPerformImplSideInvalidation() override; 109 void ScheduledActionPerformImplSideInvalidation() override;
110 void SendBeginMainFrameNotExpectedSoon() override; 110 void SendBeginMainFrameNotExpectedSoon() override;
111 void ScheduledActionBeginMainFrameNotExpectedUntil(
112 base::TimeTicks time) override;
111 113
112 DrawResult DrawInternal(bool forced_draw); 114 DrawResult DrawInternal(bool forced_draw);
113 115
114 bool IsImplThread() const; 116 bool IsImplThread() const;
115 bool IsMainThreadBlocked() const; 117 bool IsMainThreadBlocked() const;
116 base::SingleThreadTaskRunner* MainThreadTaskRunner(); 118 base::SingleThreadTaskRunner* MainThreadTaskRunner();
117 119
118 const int layer_tree_host_id_; 120 const int layer_tree_host_id_;
119 121
120 std::unique_ptr<Scheduler> scheduler_; 122 std::unique_ptr<Scheduler> scheduler_;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // A weak pointer to ProxyMain that is invalidated when CompositorFrameSink is 155 // A weak pointer to ProxyMain that is invalidated when CompositorFrameSink is
154 // released. 156 // released.
155 base::WeakPtr<ProxyMain> proxy_main_frame_sink_bound_weak_ptr_; 157 base::WeakPtr<ProxyMain> proxy_main_frame_sink_bound_weak_ptr_;
156 158
157 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); 159 DISALLOW_COPY_AND_ASSIGN(ProxyImpl);
158 }; 160 };
159 161
160 } // namespace cc 162 } // namespace cc
161 163
162 #endif // CC_TREES_PROXY_IMPL_H_ 164 #endif // CC_TREES_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_client.h ('k') | cc/trees/proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698