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

Unified Diff: content/renderer/render_widget.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
« no previous file with comments | « content/renderer/render_widget.h ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 61ce902bdf22b20f9ad74c9f20d8d2d91ae94372..9fa79f38674c16ad8400a6b957a00b584bcc178d 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1240,7 +1240,7 @@ void RenderWidget::DoDeferredUpdate() {
// If it needs to (e.g. composited UI), the GPU process does its own ACK
// with the browser for the GPU surface.
pending_update_params_->needs_ack = false;
- Composite();
+ Composite(frame_begin_ticks);
}
// If we're holding a pending input event ACK, send the ACK before sending the
@@ -1266,10 +1266,10 @@ void RenderWidget::DoDeferredUpdate() {
DidInitiatePaint();
}
-void RenderWidget::Composite() {
+void RenderWidget::Composite(base::TimeTicks frame_begin_time) {
DCHECK(is_accelerated_compositing_active_);
if (compositor_) // TODO(jamesr): Figure out how this can be null.
- compositor_->Composite();
+ compositor_->Composite(frame_begin_time);
}
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « content/renderer/render_widget.h ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698