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

Issue 16903005: Add layer name into frame viewer (Closed)

Created:
7 years, 6 months ago by qiankun
Modified:
7 years, 4 months ago
Reviewers:
jamesr, nduca, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, jamesr
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add layer name into frame viewer Layer name is useful for web developer to identify different layers. Layer name is pulled from blink. There is a blink side patch provides debugName() API in GraphicsLayer. BUG=269258 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218007

Patch Set 1 #

Total comments: 1

Patch Set 2 : add layer name only in debug version #

Total comments: 1

Patch Set 3 : get debug name on demand #

Total comments: 11

Patch Set 4 : pulling name when tracing #

Total comments: 9

Patch Set 5 : clear name if not in tracing #

Patch Set 6 : move pulling name to Update #

Total comments: 2

Patch Set 7 : add WebLayerClient #

Patch Set 8 : remove debugName in WebContentLayer #

Patch Set 9 : rebase code #

Total comments: 8

Patch Set 10 : get debug name in Update() #

Total comments: 8

Patch Set 11 : remove SetDebugName() #

Total comments: 1

Patch Set 12 : code style fix #

Patch Set 13 : rebase code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -15 lines) Patch
M cc/cc.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/heads_up_display_layer.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M cc/layers/heads_up_display_layer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M cc/layers/layer.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -1 line 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +15 lines, -5 lines 0 comments Download
A cc/layers/layer_client.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +24 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M webkit/renderer/compositor_bindings/web_layer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +8 lines, -2 lines 0 comments Download
M webkit/renderer/compositor_bindings/web_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +19 lines, -6 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
qiankun
Please help to review this patch. Thanks in advance!
7 years, 6 months ago (2013-06-17 08:54:51 UTC) #1
enne (OOO)
https://codereview.chromium.org/16903005/diff/1/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/16903005/diff/1/cc/layers/layer_impl.cc#newcode1145 cc/layers/layer_impl.cc:1145: state->SetString("layer_name", debug_name()); Debug names are only set in debug ...
7 years, 6 months ago (2013-06-17 17:25:38 UTC) #2
qiankun
On 2013/06/17 17:25:38, enne wrote: > https://codereview.chromium.org/16903005/diff/1/cc/layers/layer_impl.cc > File cc/layers/layer_impl.cc (right): > > https://codereview.chromium.org/16903005/diff/1/cc/layers/layer_impl.cc#newcode1145 > ...
7 years, 6 months ago (2013-06-18 10:56:54 UTC) #3
enne (OOO)
https://codereview.chromium.org/16903005/diff/5001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/16903005/diff/5001/cc/layers/layer_impl.cc#newcode1146 cc/layers/layer_impl.cc:1146: state->SetString("layer_name", debug_name()); On second thought, how about if (!debug_name().empty()) ...
7 years, 6 months ago (2013-06-18 16:45:56 UTC) #4
nduca
I wonder, can we switch the impedence of names? E.g. have a GraphicsLayerClient getName() method? ...
7 years, 6 months ago (2013-06-18 17:19:06 UTC) #5
enne (OOO)
On 2013/06/18 17:19:06, nduca wrote: > I wonder, can we switch the impedence of names? ...
7 years, 6 months ago (2013-06-18 17:34:54 UTC) #6
qiankun
On 2013/06/18 16:45:56, enne wrote: > https://codereview.chromium.org/16903005/diff/5001/cc/layers/layer_impl.cc > File cc/layers/layer_impl.cc (right): > > https://codereview.chromium.org/16903005/diff/5001/cc/layers/layer_impl.cc#newcode1146 > ...
7 years, 6 months ago (2013-06-19 03:17:16 UTC) #7
nduca
could you try making names an accessor going in the other direction per #5 and ...
7 years, 6 months ago (2013-06-19 05:20:27 UTC) #8
qiankun
On 2013/06/19 05:20:27, nduca wrote: > could you try making names an accessor going in ...
7 years, 6 months ago (2013-06-19 06:26:27 UTC) #9
nduca
Yep, something like that!
7 years, 6 months ago (2013-06-19 18:32:47 UTC) #10
qiankun
On 2013/06/19 18:32:47, nduca wrote: > Yep, something like that! PTAL. Get debug name on ...
7 years, 5 months ago (2013-07-02 06:11:52 UTC) #11
nduca
This is enne and caseq territory.
7 years, 5 months ago (2013-07-03 11:26:27 UTC) #12
nduca
(though, #3, just fix those by subtyping the dynamic graphics layers they create?)
7 years, 5 months ago (2013-07-03 11:27:31 UTC) #13
enne (OOO)
https://codereview.chromium.org/16903005/diff/16001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/16903005/diff/16001/cc/layers/layer.cc#newcode678 cc/layers/layer.cc:678: layer->SetDebugName(DebugName()); How about only pulling the name when tracing ...
7 years, 5 months ago (2013-07-03 17:40:43 UTC) #14
qiankun
Updated the patch. PTAL. https://codereview.chromium.org/16903005/diff/16001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/16903005/diff/16001/cc/layers/layer.cc#newcode678 cc/layers/layer.cc:678: layer->SetDebugName(DebugName()); On 2013/07/03 17:40:43, enne ...
7 years, 5 months ago (2013-07-04 04:34:04 UTC) #15
enne (OOO)
https://codereview.chromium.org/16903005/diff/16001/webkit/renderer/compositor_bindings/web_content_layer_impl.h File webkit/renderer/compositor_bindings/web_content_layer_impl.h (right): https://codereview.chromium.org/16903005/diff/16001/webkit/renderer/compositor_bindings/web_content_layer_impl.h#newcode35 webkit/renderer/compositor_bindings/web_content_layer_impl.h:35: std::string DebugName(); On 2013/07/04 04:34:04, qiankun wrote: > On ...
7 years, 5 months ago (2013-07-09 20:15:31 UTC) #16
qiankun
PTAL. Thanks. https://codereview.chromium.org/16903005/diff/16001/webkit/renderer/compositor_bindings/web_content_layer_impl.h File webkit/renderer/compositor_bindings/web_content_layer_impl.h (right): https://codereview.chromium.org/16903005/diff/16001/webkit/renderer/compositor_bindings/web_content_layer_impl.h#newcode35 webkit/renderer/compositor_bindings/web_content_layer_impl.h:35: std::string DebugName(); On 2013/07/09 20:15:32, enne wrote: ...
7 years, 5 months ago (2013-07-10 04:53:07 UTC) #17
enne (OOO)
https://codereview.chromium.org/16903005/diff/16001/webkit/renderer/compositor_bindings/web_content_layer_impl.h File webkit/renderer/compositor_bindings/web_content_layer_impl.h (right): https://codereview.chromium.org/16903005/diff/16001/webkit/renderer/compositor_bindings/web_content_layer_impl.h#newcode35 webkit/renderer/compositor_bindings/web_content_layer_impl.h:35: std::string DebugName(); On 2013/07/10 04:53:07, qiankun wrote: > On ...
7 years, 5 months ago (2013-07-10 16:48:41 UTC) #18
qiankun
https://codereview.chromium.org/16903005/diff/27001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/16903005/diff/27001/cc/layers/layer.cc#newcode681 cc/layers/layer.cc:681: TRACE_EVENT_CATEGORY_GROUP_ENABLED(TRACE_DISABLED_BY_DEFAULT("cc.debug"), On 2013/07/10 16:48:42, enne wrote: > On 2013/07/10 ...
7 years, 5 months ago (2013-07-11 10:04:42 UTC) #19
enne (OOO)
lgtm
7 years, 5 months ago (2013-07-11 16:53:42 UTC) #20
enne (OOO)
https://codereview.chromium.org/16903005/diff/40001/webkit/renderer/compositor_bindings/web_content_layer_impl.cc File webkit/renderer/compositor_bindings/web_content_layer_impl.cc (right): https://codereview.chromium.org/16903005/diff/40001/webkit/renderer/compositor_bindings/web_content_layer_impl.cc#newcode70 webkit/renderer/compositor_bindings/web_content_layer_impl.cc:70: return UTF16ToASCII(client_->debugName()); This will assert if the name is ...
7 years, 5 months ago (2013-07-18 17:50:23 UTC) #21
jamesr
https://codereview.chromium.org/16903005/diff/40001/webkit/renderer/compositor_bindings/web_content_layer_impl.cc File webkit/renderer/compositor_bindings/web_content_layer_impl.cc (right): https://codereview.chromium.org/16903005/diff/40001/webkit/renderer/compositor_bindings/web_content_layer_impl.cc#newcode70 webkit/renderer/compositor_bindings/web_content_layer_impl.cc:70: return UTF16ToASCII(client_->debugName()); On 2013/07/18 17:50:23, enne wrote: > This ...
7 years, 5 months ago (2013-07-18 18:03:42 UTC) #22
qiankun
On 2013/07/18 17:50:23, enne wrote: > https://codereview.chromium.org/16903005/diff/40001/webkit/renderer/compositor_bindings/web_content_layer_impl.cc > File webkit/renderer/compositor_bindings/web_content_layer_impl.cc (right): > > https://codereview.chromium.org/16903005/diff/40001/webkit/renderer/compositor_bindings/web_content_layer_impl.cc#newcode70 > ...
7 years, 5 months ago (2013-07-19 05:03:14 UTC) #23
qiankun
On 2013/07/18 18:03:42, jamesr wrote: > https://codereview.chromium.org/16903005/diff/40001/webkit/renderer/compositor_bindings/web_content_layer_impl.cc > File webkit/renderer/compositor_bindings/web_content_layer_impl.cc (right): > > https://codereview.chromium.org/16903005/diff/40001/webkit/renderer/compositor_bindings/web_content_layer_impl.cc#newcode70 > ...
7 years, 5 months ago (2013-07-19 05:13:16 UTC) #24
qiankun
On 2013/07/19 05:13:16, qiankun wrote: > On 2013/07/18 18:03:42, jamesr wrote: > > > https://codereview.chromium.org/16903005/diff/40001/webkit/renderer/compositor_bindings/web_content_layer_impl.cc ...
7 years, 5 months ago (2013-07-19 08:06:37 UTC) #25
jamesr
Yup! If the string is ASCII this will actually just be one string copy and ...
7 years, 5 months ago (2013-07-19 16:51:41 UTC) #26
enne (OOO)
On 2013/07/19 16:51:41, jamesr wrote: > Yup! If the string is ASCII this will actually ...
7 years, 5 months ago (2013-07-19 17:02:06 UTC) #27
qiankun
On 2013/07/19 17:02:06, enne wrote: > On 2013/07/19 16:51:41, jamesr wrote: > > Yup! If ...
7 years, 5 months ago (2013-07-26 08:44:03 UTC) #28
enne (OOO)
https://codereview.chromium.org/16903005/diff/58001/cc/layers/content_layer.h File cc/layers/content_layer.h (right): https://codereview.chromium.org/16903005/diff/58001/cc/layers/content_layer.h#newcode8 cc/layers/content_layer.h:8: #include <string> This include can go away now. https://codereview.chromium.org/16903005/diff/58001/cc/layers/content_layer_client.h ...
7 years, 4 months ago (2013-08-01 22:12:59 UTC) #29
qiankun
PTAL. Thanks:) https://codereview.chromium.org/16903005/diff/58001/cc/layers/content_layer.h File cc/layers/content_layer.h (right): https://codereview.chromium.org/16903005/diff/58001/cc/layers/content_layer.h#newcode8 cc/layers/content_layer.h:8: #include <string> On 2013/08/01 22:12:59, enne wrote: ...
7 years, 4 months ago (2013-08-02 17:50:26 UTC) #30
enne (OOO)
https://codereview.chromium.org/16903005/diff/69001/cc/layers/heads_up_display_layer.cc File cc/layers/heads_up_display_layer.cc (right): https://codereview.chromium.org/16903005/diff/69001/cc/layers/heads_up_display_layer.cc#newcode60 cc/layers/heads_up_display_layer.cc:60: TRACE_EVENT_CATEGORY_GROUP_ENABLED("cc", &is_tracing); No need for the trace event check ...
7 years, 4 months ago (2013-08-02 17:58:17 UTC) #31
qiankun
Thanks for review:) Updated the patch, PTAL. https://codereview.chromium.org/16903005/diff/69001/cc/layers/heads_up_display_layer.cc File cc/layers/heads_up_display_layer.cc (right): https://codereview.chromium.org/16903005/diff/69001/cc/layers/heads_up_display_layer.cc#newcode60 cc/layers/heads_up_display_layer.cc:60: TRACE_EVENT_CATEGORY_GROUP_ENABLED("cc", &is_tracing); ...
7 years, 4 months ago (2013-08-05 06:54:14 UTC) #32
enne (OOO)
https://codereview.chromium.org/16903005/diff/77001/cc/layers/layer_client.h File cc/layers/layer_client.h (right): https://codereview.chromium.org/16903005/diff/77001/cc/layers/layer_client.h#newcode16 cc/layers/layer_client.h:16: virtual std::string DebugName() = 0; style nit: 2 space ...
7 years, 4 months ago (2013-08-05 16:54:29 UTC) #33
enne (OOO)
lgtm
7 years, 4 months ago (2013-08-06 16:31:55 UTC) #34
qiankun
Add back "OVERRIDE" for virtual std::string DebugName() OVERRIDE; in web_layer_impl.h. It's not a cross-repo OVERRIDE ...
7 years, 4 months ago (2013-08-14 10:32:32 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qiankun.miao@intel.com/16903005/89001
7 years, 4 months ago (2013-08-16 10:30:54 UTC) #36
commit-bot: I haz the power
7 years, 4 months ago (2013-08-16 13:04:27 UTC) #37
Message was sent while issue was closed.
Change committed as 218007

Powered by Google App Engine
This is Rietveld 408576698