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

Issue 16848010: Add LayerTreeHostClient::{will,did}UpdateLayer, report layer updates to DevTools (Closed)

Created:
7 years, 6 months ago by caseq
Modified:
7 years, 5 months ago
Reviewers:
danakj, jamesr, nduca
CC:
chromium-reviews, jonathan.backer, Ian Vollick, jam, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org
Visibility:
Public.

Description

Add LayerTreeHostClient::{will,did}UpdateLayer, report layer updates to DevTools This adds instrumentation methods that mark layer updates. Note that we don't use trace event based instrumentation, as we only want to receive events related to the inspected page. Related blink change: https://codereview.chromium.org/16878004 BUG=244505 R=jamesr@chromium.org, nduca@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213090

Patch Set 1 : #

Patch Set 2 : use trace events, pass cookie obtained from devtools to identify the page #

Patch Set 3 : pass tree id to devtools, not vice versa #

Total comments: 2

Patch Set 4 : review comments addressed #

Total comments: 2

Patch Set 5 : rebased for try run #

Total comments: 2

Patch Set 6 : moved initializeLayerTreeView() to WebKit::WebWidgetClient group #

Total comments: 6

Patch Set 7 : review comments addressed, try run #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -4 lines) Patch
M cc/debug/devtools_instrumentation.h View 1 2 3 4 3 chunks +24 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 6 chunks +15 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 29 (0 generated)
nduca
Should this use trace_event plumbing? It'd be less exposure via the client interface for sure...
7 years, 6 months ago (2013-06-15 05:25:57 UTC) #1
nduca
Which is my way of asking for more rationale than you included on the patch ...
7 years, 6 months ago (2013-06-15 05:28:05 UTC) #2
caseq
On 2013/06/15 05:28:05, nduca wrote: > Which is my way of asking for more rationale ...
7 years, 6 months ago (2013-06-17 17:45:26 UTC) #3
nduca
What if we expose layer ids back to Blink? I think we need something like ...
7 years, 6 months ago (2013-06-18 01:14:32 UTC) #4
jamesr
On 2013/06/18 01:14:32, nduca wrote: > What if we expose layer ids back to Blink? ...
7 years, 6 months ago (2013-06-18 01:42:02 UTC) #5
caseq
On 2013/06/18 01:14:32, nduca wrote: > What if we expose layer ids back to Blink? ...
7 years, 6 months ago (2013-06-18 05:59:10 UTC) #6
nduca
Associating LTH with a page sounds promising... can we do a similar id scheme?
7 years, 6 months ago (2013-06-18 17:58:26 UTC) #7
caseq
On 2013/06/18 17:58:26, nduca wrote: > Associating LTH with a page sounds promising... can we ...
7 years, 6 months ago (2013-06-18 21:16:16 UTC) #8
jamesr
Not sure if this is relevant for this patch or not, but do be aware ...
7 years, 6 months ago (2013-06-18 22:42:11 UTC) #9
caseq
On 2013/06/18 22:42:11, jamesr wrote: > Not sure if this is relevant for this patch ...
7 years, 6 months ago (2013-06-19 15:39:54 UTC) #10
danakj
On Wed, Jun 19, 2013 at 11:39 AM, <caseq@chromium.org> wrote: > On 2013/06/18 22:42:11, jamesr ...
7 years, 6 months ago (2013-06-19 15:43:18 UTC) #11
jamesr
On 2013/06/19 15:39:54, caseq wrote: > On 2013/06/18 22:42:11, jamesr wrote: > > Not sure ...
7 years, 6 months ago (2013-06-19 18:17:08 UTC) #12
nduca
I'm a bit meh about having layers have their own ids that cc assigns but ...
7 years, 6 months ago (2013-06-24 19:41:09 UTC) #13
caseq
On 2013/06/24 19:41:09, nduca wrote: > I'm a bit meh about having layers have their ...
7 years, 6 months ago (2013-06-25 18:06:22 UTC) #14
nduca
Thank you! I think this is going in the right direction now, even though it ...
7 years, 6 months ago (2013-06-26 05:08:40 UTC) #15
nduca
https://codereview.chromium.org/16848010/diff/24001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/16848010/diff/24001/cc/trees/layer_tree_host.cc#newcode101 cc/trees/layer_tree_host.cc:101: instrumentation_cookie_(0) { do you still need the cookie init ...
7 years, 6 months ago (2013-06-26 05:08:46 UTC) #16
caseq
On 2013/06/26 05:08:46, nduca wrote: > https://codereview.chromium.org/16848010/diff/24001/cc/trees/layer_tree_host.cc > File cc/trees/layer_tree_host.cc (right): > > https://codereview.chromium.org/16848010/diff/24001/cc/trees/layer_tree_host.cc#newcode101 > ...
7 years, 6 months ago (2013-06-26 12:39:53 UTC) #17
nduca
lgtm can you file a followup bug to plumb id to the impl side? https://codereview.chromium.org/16848010/diff/32002/cc/debug/devtools_instrumentation.h ...
7 years, 6 months ago (2013-06-26 15:08:00 UTC) #18
caseq
James, could you please stamp this for content/renderer owners?
7 years, 5 months ago (2013-07-19 08:37:02 UTC) #19
jamesr
https://codereview.chromium.org/16848010/diff/39001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/16848010/diff/39001/content/renderer/render_view_impl.cc#newcode948 content/renderer/render_view_impl.cc:948: if (RenderWidgetCompositor* rwc = compositor()) { this doesn't make ...
7 years, 5 months ago (2013-07-19 19:47:47 UTC) #20
caseq
On 2013/07/19 19:47:47, jamesr wrote: > https://codereview.chromium.org/16848010/diff/39001/content/renderer/render_view_impl.cc > File content/renderer/render_view_impl.cc (right): > > https://codereview.chromium.org/16848010/diff/39001/content/renderer/render_view_impl.cc#newcode948 > ...
7 years, 5 months ago (2013-07-22 08:44:41 UTC) #21
caseq
On 2013/07/22 08:44:41, caseq wrote: > On 2013/07/19 19:47:47, jamesr wrote: > > > https://codereview.chromium.org/16848010/diff/39001/content/renderer/render_view_impl.h ...
7 years, 5 months ago (2013-07-22 09:08:57 UTC) #22
danakj
https://codereview.chromium.org/16848010/diff/49001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/16848010/diff/49001/cc/trees/layer_tree_host.cc#newcode891 cc/trees/layer_tree_host.cc:891: devtools_instrumentation::ScopedLayerTreeTask Just wondering: Does devtools have the ability to ...
7 years, 5 months ago (2013-07-22 15:06:50 UTC) #23
caseq
https://codereview.chromium.org/16848010/diff/49001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/16848010/diff/49001/cc/trees/layer_tree_host.cc#newcode891 cc/trees/layer_tree_host.cc:891: devtools_instrumentation::ScopedLayerTreeTask On 2013/07/22 15:06:51, danakj wrote: > Just wondering: ...
7 years, 5 months ago (2013-07-22 15:44:49 UTC) #24
danakj
On Mon, Jul 22, 2013 at 11:44 AM, <caseq@chromium.org> wrote: > > https://codereview.chromium.**org/16848010/diff/49001/cc/** > trees/layer_tree_host.cc<https://codereview.chromium.org/16848010/diff/49001/cc/trees/layer_tree_host.cc> ...
7 years, 5 months ago (2013-07-22 15:52:42 UTC) #25
jamesr
https://codereview.chromium.org/16848010/diff/49001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/16848010/diff/49001/cc/trees/layer_tree_host.cc#newcode107 cc/trees/layer_tree_host.cc:107: if (s_next_tree_id <= 0) what is this for? are ...
7 years, 5 months ago (2013-07-22 18:01:02 UTC) #26
caseq
https://codereview.chromium.org/16848010/diff/49001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/16848010/diff/49001/cc/trees/layer_tree_host.cc#newcode107 cc/trees/layer_tree_host.cc:107: if (s_next_tree_id <= 0) On 2013/07/22 18:01:02, jamesr wrote: ...
7 years, 5 months ago (2013-07-22 18:56:46 UTC) #27
jamesr
On 2013/07/22 18:56:46, caseq wrote: > https://codereview.chromium.org/16848010/diff/49001/cc/trees/layer_tree_host.cc > File cc/trees/layer_tree_host.cc (right): > > https://codereview.chromium.org/16848010/diff/49001/cc/trees/layer_tree_host.cc#newcode107 > ...
7 years, 5 months ago (2013-07-22 19:32:29 UTC) #28
caseq
7 years, 5 months ago (2013-07-23 13:28:31 UTC) #29
Message was sent while issue was closed.
Committed patchset #7 manually as r213090 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698