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

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

Issue 2296353002: Revert of Remove default begin frame sources from the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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.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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // The members of this struct should be accessed on the impl thread only when 59 // The members of this struct should be accessed on the impl thread only when
60 // the main thread is blocked for a commit. 60 // the main thread is blocked for a commit.
61 struct BlockedMainCommitOnly { 61 struct BlockedMainCommitOnly {
62 BlockedMainCommitOnly(); 62 BlockedMainCommitOnly();
63 ~BlockedMainCommitOnly(); 63 ~BlockedMainCommitOnly();
64 LayerTreeHost* layer_tree_host; 64 LayerTreeHost* layer_tree_host;
65 }; 65 };
66 66
67 // LayerTreeHostImplClient implementation 67 // LayerTreeHostImplClient implementation
68 void DidLoseOutputSurfaceOnImplThread() override; 68 void DidLoseOutputSurfaceOnImplThread() override;
69 void CommitVSyncParameters(base::TimeTicks timebase,
70 base::TimeDelta interval) override;
69 void SetBeginFrameSource(BeginFrameSource* source) override; 71 void SetBeginFrameSource(BeginFrameSource* source) override;
70 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; 72 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
71 void DidSwapBuffersCompleteOnImplThread() override; 73 void DidSwapBuffersCompleteOnImplThread() override;
72 void OnCanDrawStateChanged(bool can_draw) override; 74 void OnCanDrawStateChanged(bool can_draw) override;
73 void NotifyReadyToActivate() override; 75 void NotifyReadyToActivate() override;
74 void NotifyReadyToDraw() override; 76 void NotifyReadyToDraw() override;
75 // Please call these 3 functions through 77 // Please call these 3 functions through
76 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and 78 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
77 // SetNeedsOneBeginImplFrame(). 79 // SetNeedsOneBeginImplFrame().
78 void SetNeedsRedrawOnImplThread() override; 80 void SetNeedsRedrawOnImplThread() override;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 bool next_frame_is_newly_committed_frame_; 131 bool next_frame_is_newly_committed_frame_;
130 132
131 bool inside_draw_; 133 bool inside_draw_;
132 bool input_throttled_until_commit_; 134 bool input_throttled_until_commit_;
133 135
134 TaskRunnerProvider* task_runner_provider_; 136 TaskRunnerProvider* task_runner_provider_;
135 137
136 DelayedUniqueNotifier smoothness_priority_expiration_notifier_; 138 DelayedUniqueNotifier smoothness_priority_expiration_notifier_;
137 139
138 std::unique_ptr<BeginFrameSource> external_begin_frame_source_; 140 std::unique_ptr<BeginFrameSource> external_begin_frame_source_;
141 std::unique_ptr<BeginFrameSource> unthrottled_begin_frame_source_;
142 std::unique_ptr<SyntheticBeginFrameSource> synthetic_begin_frame_source_;
139 143
140 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 144 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
141 145
142 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_; 146 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_;
143 147
144 ChannelImpl* channel_impl_; 148 ChannelImpl* channel_impl_;
145 149
146 // Use accessors instead of this variable directly. 150 // Use accessors instead of this variable directly.
147 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; 151 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_;
148 BlockedMainCommitOnly& blocked_main_commit(); 152 BlockedMainCommitOnly& blocked_main_commit();
149 153
150 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); 154 DISALLOW_COPY_AND_ASSIGN(ProxyImpl);
151 }; 155 };
152 156
153 } // namespace cc 157 } // namespace cc
154 158
155 #endif // CC_TREES_PROXY_IMPL_H_ 159 #endif // CC_TREES_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | cc/trees/proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698