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

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: respond to Brian's comments Created 3 years, 8 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
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; 98 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override;
99 DrawResult ScheduledActionDrawIfPossible() override; 99 DrawResult ScheduledActionDrawIfPossible() override;
100 DrawResult ScheduledActionDrawForced() override; 100 DrawResult ScheduledActionDrawForced() override;
101 void ScheduledActionCommit() override; 101 void ScheduledActionCommit() override;
102 void ScheduledActionActivateSyncTree() override; 102 void ScheduledActionActivateSyncTree() override;
103 void ScheduledActionBeginCompositorFrameSinkCreation() override; 103 void ScheduledActionBeginCompositorFrameSinkCreation() override;
104 void ScheduledActionPrepareTiles() override; 104 void ScheduledActionPrepareTiles() override;
105 void ScheduledActionInvalidateCompositorFrameSink() override; 105 void ScheduledActionInvalidateCompositorFrameSink() override;
106 void ScheduledActionPerformImplSideInvalidation() override; 106 void ScheduledActionPerformImplSideInvalidation() override;
107 void SendBeginMainFrameNotExpectedSoon() override; 107 void SendBeginMainFrameNotExpectedSoon() override;
108 void ScheduledActionBeginMainFrameNotExpectedUntil(
109 base::TimeTicks time) override;
108 110
109 DrawResult DrawInternal(bool forced_draw); 111 DrawResult DrawInternal(bool forced_draw);
110 112
111 bool IsImplThread() const; 113 bool IsImplThread() const;
112 bool IsMainThreadBlocked() const; 114 bool IsMainThreadBlocked() const;
113 base::SingleThreadTaskRunner* MainThreadTaskRunner(); 115 base::SingleThreadTaskRunner* MainThreadTaskRunner();
114 116
115 const int layer_tree_host_id_; 117 const int layer_tree_host_id_;
116 118
117 std::unique_ptr<Scheduler> scheduler_; 119 std::unique_ptr<Scheduler> scheduler_;
(...skipping 28 matching lines...) Expand all
146 148
147 // Used to post tasks to ProxyMain on the main thread. 149 // Used to post tasks to ProxyMain on the main thread.
148 base::WeakPtr<ProxyMain> proxy_main_weak_ptr_; 150 base::WeakPtr<ProxyMain> proxy_main_weak_ptr_;
149 151
150 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); 152 DISALLOW_COPY_AND_ASSIGN(ProxyImpl);
151 }; 153 };
152 154
153 } // namespace cc 155 } // namespace cc
154 156
155 #endif // CC_TREES_PROXY_IMPL_H_ 157 #endif // CC_TREES_PROXY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698