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

Unified Diff: cc/trees/layer_tree_host_impl.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: tests Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index ded20b2d92028bf8cb0939a4987374eeeeaa765d..921587a6208bc577e68ff555945bdde777c1b259 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -108,6 +108,7 @@ class LayerTreeHostImplClient {
base::TimeDelta delay) = 0;
virtual void DidActivateSyncTree() = 0;
virtual void DidPrepareTiles() = 0;
+ virtual base::TimeTicks GetNextBeginImplFrameTimeIfRequested() const = 0;
// Called when page scale animation has completed on the impl thread.
virtual void DidCompletePageScaleAnimationOnImplThread() = 0;
@@ -516,6 +517,9 @@ class CC_EXPORT LayerTreeHostImpl
return frame_timing_tracker_.get();
}
+ void SetBeginMainFrameTime(base::TimeTicks frame_time);
+ void RecordMainFrameTiming();
+
protected:
LayerTreeHostImpl(
const LayerTreeSettings& settings,
@@ -733,6 +737,7 @@ class CC_EXPORT LayerTreeHostImpl
bool is_likely_to_require_a_draw_;
scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
+ base::TimeTicks main_frame_time_;
DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
};

Powered by Google App Engine
This is Rietveld 408576698