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

Issue 60353002: cc: add DevTools instrumentation for impl-side frames (Closed)

Created:
7 years, 1 month ago by caseq
Modified:
7 years ago
Reviewers:
jamesr, dshwang, alph, nduca
CC:
chromium-reviews, vsevik, yurys, paulirish+reviews_chromium.org, devtools-reviews_chromium.org, cc-bugs_chromium.org, aandrey+blink_chromium.org, pfeldman
Visibility:
Public.

Description

cc: add DevTools instrumentation for impl-side frames This adds devtools_instrumentation::didBeginFrame() invoked from Scheduler::BeginImplFrame() and devtools_instrumentation::didCommitMainThreadFrame invoked from LayerTreeHost::FinishCommitOnImplThread(). We use the latter to associate impl-side frames with main thread ones on the DevTools side. Related blink-side patch: https://codereview.chromium.org/59793003/ BUG=305863 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238150

Patch Set 1 #

Patch Set 2 : fixed scheduler_unittest.cc #

Total comments: 4

Patch Set 3 : tree_id -> layer_tree_host_id, also use StaticAtomicSequenceNumber to allocate it #

Total comments: 3

Patch Set 4 : Insturment tree activation instead of commit for linking main thread frames to imple-side ones #

Total comments: 1

Patch Set 5 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -42 lines) Patch
M cc/debug/devtools_instrumentation.h View 1 2 3 3 chunks +22 lines, -3 lines 0 comments Download
M cc/scheduler/scheduler.h View 1 2 3 4 3 chunks +7 lines, -3 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_layer_tree_host_impl.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 chunks +6 lines, -12 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 chunks +10 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 chunks +6 lines, -5 lines 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M cc/trees/tree_synchronizer_unittest.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
caseq
7 years, 1 month ago (2013-11-05 17:15:16 UTC) #1
nduca
if we put the source_frame_number on layer_tree_impl, could we get away with just using frame_id? ...
7 years, 1 month ago (2013-11-06 19:05:12 UTC) #2
caseq
> if we put the source_frame_number on layer_tree_impl, > could we get away with just ...
7 years, 1 month ago (2013-11-07 06:36:26 UTC) #3
dshwang
https://codereview.chromium.org/60353002/diff/150020/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/60353002/diff/150020/cc/trees/layer_tree_host.cc#newcode45 cc/trees/layer_tree_host.cc:45: static base::StaticAtomicSequenceNumber s_layer_tree_host_sequence_number; oh, great! thx.
7 years, 1 month ago (2013-11-07 10:28:51 UTC) #4
caseq
Nat, ping :)
7 years, 1 month ago (2013-11-11 16:17:28 UTC) #5
nduca
lgtm with some minor nits https://codereview.chromium.org/60353002/diff/150020/cc/debug/devtools_instrumentation.h File cc/debug/devtools_instrumentation.h (right): https://codereview.chromium.org/60353002/diff/150020/cc/debug/devtools_instrumentation.h#newcode90 cc/debug/devtools_instrumentation.h:90: inline void didCommitMainThreadFrame(uint64 tree_id, ...
7 years, 1 month ago (2013-11-12 05:51:17 UTC) #6
caseq
On 2013/11/12 05:51:17, nduca wrote: > lgtm with some minor nits > > https://codereview.chromium.org/60353002/diff/150020/cc/debug/devtools_instrumentation.h > ...
7 years, 1 month ago (2013-11-12 13:04:33 UTC) #7
alph
https://codereview.chromium.org/60353002/diff/420001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/60353002/diff/420001/cc/trees/layer_tree_host.cc#newcode120 cc/trees/layer_tree_host.cc:120: id_(s_layer_tree_host_sequence_number.GetNext() + 1), nit: why not keep inline GetNextTreeId ...
7 years, 1 month ago (2013-11-15 23:46:15 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caseq@chromium.org/60353002/480001
7 years ago (2013-12-02 16:48:56 UTC) #9
commit-bot: I haz the power
7 years ago (2013-12-02 19:23:04 UTC) #10
Message was sent while issue was closed.
Change committed as 238150

Powered by Google App Engine
This is Rietveld 408576698