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

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

Issue 914403003: cc: Add main frame timing info to frame timing tracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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/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_THREAD_PROXY_H_ 5 #ifndef CC_TREES_THREAD_PROXY_H_
6 #define CC_TREES_THREAD_PROXY_H_ 6 #define CC_TREES_THREAD_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // Whether a commit has been completed since the last time animations were 136 // Whether a commit has been completed since the last time animations were
137 // ticked. If this happens, we need to animate again. 137 // ticked. If this happens, we need to animate again.
138 bool did_commit_after_animating; 138 bool did_commit_after_animating;
139 139
140 DelayedUniqueNotifier smoothness_priority_expiration_notifier; 140 DelayedUniqueNotifier smoothness_priority_expiration_notifier;
141 141
142 ProxyTimingHistory timing_history; 142 ProxyTimingHistory timing_history;
143 143
144 scoped_ptr<BeginFrameSource> external_begin_frame_source; 144 scoped_ptr<BeginFrameSource> external_begin_frame_source;
145 145
146 // Values used to keep track of frame durations. Used only in frame timing.
147 BeginFrameArgs last_begin_main_frame_args;
148 BeginFrameArgs last_processed_begin_main_frame_args;
149
146 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl; 150 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl;
147 base::WeakPtrFactory<ThreadProxy> weak_factory; 151 base::WeakPtrFactory<ThreadProxy> weak_factory;
148 }; 152 };
149 153
150 const MainThreadOnly& main() const; 154 const MainThreadOnly& main() const;
151 const MainThreadOrBlockedMainThread& blocked_main() const; 155 const MainThreadOrBlockedMainThread& blocked_main() const;
152 const CompositorThreadOnly& impl() const; 156 const CompositorThreadOnly& impl() const;
153 157
154 // Proxy implementation 158 // Proxy implementation
155 void FinishAllRendering() override; 159 void FinishAllRendering() override;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 309
306 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 310 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
307 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 311 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
308 312
309 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 313 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
310 }; 314 };
311 315
312 } // namespace cc 316 } // namespace cc
313 317
314 #endif // CC_TREES_THREAD_PROXY_H_ 318 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698