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

Issue 9592006: Notify DevTools when updating frame in RenderWidget (Closed)

Created:
8 years, 9 months ago by caseq
Modified:
8 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Notify DevTools when updating frame in RenderWidget Add a call to WebWidget::instrumentBeginFrame() in RenderWiddget::doDeferredUpdate() so DevTools can mark frames on timeline. Related issue upstream: https://bugs.webkit.org/show_bug.cgi?id=80127 BUG=none TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=126921

Patch Set 1 #

Total comments: 1

Patch Set 2 : added call to intrumentCancelFrame() when returning before paint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M content/renderer/render_widget.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
caseq
8 years, 9 months ago (2012-03-06 12:27:01 UTC) #1
pfeldman
lgtm
8 years, 9 months ago (2012-03-06 16:04:23 UTC) #2
caseq
James or Darin, could you please have a look?
8 years, 9 months ago (2012-03-06 16:17:02 UTC) #3
nduca
Neat. http://codereview.chromium.org/9592006/diff/1/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): http://codereview.chromium.org/9592006/diff/1/content/renderer/render_widget.cc#newcode848 content/renderer/render_widget.cc:848: return; If we early-return here, you'll generate a ...
8 years, 9 months ago (2012-03-06 16:48:18 UTC) #4
jamesr
This is for bracketing a frame more accurately, right? Wouldn't you also want to know ...
8 years, 9 months ago (2012-03-06 18:54:13 UTC) #5
caseq
On 2012/03/06 16:48:18, nduca wrote: > content/renderer/render_widget.cc:848: return; > If we early-return here, you'll generate ...
8 years, 9 months ago (2012-03-06 18:59:08 UTC) #6
jamesr
On 2012/03/06 18:59:08, caseq wrote: > On 2012/03/06 16:48:18, nduca wrote: > > content/renderer/render_widget.cc:848: return; ...
8 years, 9 months ago (2012-03-06 19:00:40 UTC) #7
caseq
On 2012/03/06 18:54:13, jamesr wrote: > This is for bracketing a frame more accurately, right? ...
8 years, 9 months ago (2012-03-06 19:08:37 UTC) #8
caseq
On 2012/03/06 19:00:40, jamesr wrote: > CSS animations are triggered by the animate() call, but ...
8 years, 9 months ago (2012-03-06 19:17:55 UTC) #9
jamesr
On 2012/03/06 19:17:55, caseq wrote: > On 2012/03/06 19:00:40, jamesr wrote: > > > CSS ...
8 years, 9 months ago (2012-03-06 19:20:25 UTC) #10
caseq
> That sounds better. Keep in mind frame_begin_ticks is a base::TimeTicks, so > it's not ...
8 years, 9 months ago (2012-03-06 19:21:44 UTC) #11
nduca
I think we might be able to keep things to a single call by defining ...
8 years, 9 months ago (2012-03-06 20:46:17 UTC) #12
caseq
I played a bit with the idea of calling instrumentBeginFrame() after we bail out upon ...
8 years, 9 months ago (2012-03-14 16:34:23 UTC) #13
jamesr
This seems fine, LGTM
8 years, 9 months ago (2012-03-14 18:12:41 UTC) #14
nduca
I'm not sure this is the right way to go. I dont think we want ...
8 years, 9 months ago (2012-03-14 19:13:27 UTC) #15
caseq
On 2012/03/14 19:13:27, nduca wrote: > Rather, if we tick animation, that should be a ...
8 years, 9 months ago (2012-03-15 15:27:29 UTC) #16
nduca
8 years, 9 months ago (2012-03-15 15:37:51 UTC) #17
On 2012/03/15 15:27:29, caseq wrote:
> In particular, I'm paranoid about layout -- I reckon it's not
> frequent and normally not expensive in the kind of animation-heavy application
> that we target, but it's still there. In this example:
> http://www.corp.google.com/%7Enduca/tracing_examples/03_layout.html
> we're off by 230-540us (on a z600) because of layout. Moreover, it causes
layout
> events to appear at the end of a (previous) frame at timeline, which looks
> confusing to me.
> Are we looking to sacrifice accuracy here in order to avoid exposing
> didCancelFrame?

Oh, darn. You're 110% right and I'm a moron. LGTM and tons of apologies for
holding you up.

Powered by Google App Engine
This is Rietveld 408576698