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

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

Issue 1897123002: Remove current implementation of frame timing events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 std::unique_ptr<AnimationEvents> events) override; 99 std::unique_ptr<AnimationEvents> events) override;
100 bool IsInsideDraw() override; 100 bool IsInsideDraw() override;
101 void RenewTreePriority() override; 101 void RenewTreePriority() override;
102 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, 102 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task,
103 base::TimeDelta delay) override; 103 base::TimeDelta delay) override;
104 void DidActivateSyncTree() override; 104 void DidActivateSyncTree() override;
105 void WillPrepareTiles() override; 105 void WillPrepareTiles() override;
106 void DidPrepareTiles() override; 106 void DidPrepareTiles() override;
107 void DidCompletePageScaleAnimationOnImplThread() override; 107 void DidCompletePageScaleAnimationOnImplThread() override;
108 void OnDrawForOutputSurface(bool resourceless_software_draw) override; 108 void OnDrawForOutputSurface(bool resourceless_software_draw) override;
109 // This should only be called by LayerTreeHostImpl::PostFrameTimingEvents.
110 void PostFrameTimingEventsOnImplThread(
111 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
112 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events)
113 override;
114 109
115 // SchedulerClient implementation 110 // SchedulerClient implementation
116 void WillBeginImplFrame(const BeginFrameArgs& args) override; 111 void WillBeginImplFrame(const BeginFrameArgs& args) override;
117 void DidFinishImplFrame() override; 112 void DidFinishImplFrame() override;
118 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; 113 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override;
119 DrawResult ScheduledActionDrawAndSwapIfPossible() override; 114 DrawResult ScheduledActionDrawAndSwapIfPossible() override;
120 DrawResult ScheduledActionDrawAndSwapForced() override; 115 DrawResult ScheduledActionDrawAndSwapForced() override;
121 void ScheduledActionCommit() override; 116 void ScheduledActionCommit() override;
122 void ScheduledActionActivateSyncTree() override; 117 void ScheduledActionActivateSyncTree() override;
123 void ScheduledActionBeginOutputSurfaceCreation() override; 118 void ScheduledActionBeginOutputSurfaceCreation() override;
(...skipping 27 matching lines...) Expand all
151 TaskRunnerProvider* task_runner_provider_; 146 TaskRunnerProvider* task_runner_provider_;
152 147
153 DelayedUniqueNotifier smoothness_priority_expiration_notifier_; 148 DelayedUniqueNotifier smoothness_priority_expiration_notifier_;
154 149
155 std::unique_ptr<BeginFrameSource> external_begin_frame_source_; 150 std::unique_ptr<BeginFrameSource> external_begin_frame_source_;
156 std::unique_ptr<BeginFrameSource> unthrottled_begin_frame_source_; 151 std::unique_ptr<BeginFrameSource> unthrottled_begin_frame_source_;
157 std::unique_ptr<SyntheticBeginFrameSource> synthetic_begin_frame_source_; 152 std::unique_ptr<SyntheticBeginFrameSource> synthetic_begin_frame_source_;
158 153
159 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 154 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
160 155
161 // Values used to keep track of frame durations. Used only in frame timing.
162 BeginFrameArgs last_begin_main_frame_args_;
163 BeginFrameArgs last_processed_begin_main_frame_args_;
164
165 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_; 156 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_;
166 157
167 ChannelImpl* channel_impl_; 158 ChannelImpl* channel_impl_;
168 159
169 // Use accessors instead of this variable directly. 160 // Use accessors instead of this variable directly.
170 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; 161 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_;
171 BlockedMainCommitOnly& blocked_main_commit(); 162 BlockedMainCommitOnly& blocked_main_commit();
172 163
173 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); 164 DISALLOW_COPY_AND_ASSIGN(ProxyImpl);
174 }; 165 };
175 166
176 } // namespace cc 167 } // namespace cc
177 168
178 #endif // CC_TREES_PROXY_IMPL_H_ 169 #endif // CC_TREES_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698