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

Unified Diff: content/renderer/render_widget.cc

Issue 9592006: Notify DevTools when updating frame in RenderWidget (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added call to intrumentCancelFrame() when returning before paint Created 8 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 | « no previous file | no next file » | 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 6c092082f0e9fa50dd84fa157e0cb603cbda0164..f5d3f10b05df34c920991d2aadb011717384b629 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -829,6 +829,7 @@ void RenderWidget::DoDeferredUpdate() {
// Tracking of frame rate jitter
base::TimeTicks frame_begin_ticks = base::TimeTicks::Now();
+ webwidget_->instrumentBeginFrame();
AnimateIfNeeded();
// Layout may generate more invalidation. It may also enable the
@@ -846,6 +847,7 @@ void RenderWidget::DoDeferredUpdate() {
// animations running layout as these may generate further invalidations.
if (!paint_aggregator_.HasPendingUpdate()) {
TRACE_EVENT0("renderer", "EarlyOut_NoPendingUpdate");
+ webwidget_->instrumentCancelFrame();
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698