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

Unified Diff: ui/compositor/compositor.cc

Issue 12804006: cc: Save correct frame begin time to FrameRateCounter (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 188402 Created 7 years, 9 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: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 47b725839f07647be10be9ccd8f32b5b6d175ea6..40aac7ca2e575bc12dda3421b935452715652e2d 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -449,7 +449,7 @@ void Compositor::Terminate() {
void Compositor::ScheduleDraw() {
if (g_compositor_thread)
- host_->Composite();
+ host_->Composite(base::TimeTicks::Now());
else if (delegate_)
delegate_->ScheduleDraw();
}
@@ -484,7 +484,7 @@ void Compositor::Draw(bool force_clear) {
// TODO(nduca): Temporary while compositor calls
// compositeImmediately() directly.
layout();
- host_->Composite();
+ host_->Composite(base::TimeTicks::Now());
}
if (!pending_swap.posted())
NotifyEnd();
« no previous file with comments | « content/renderer/render_widget.cc ('k') | webkit/compositor_bindings/web_layer_tree_view_impl_for_testing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698