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

Issue 1111743002: cc: Adding DidFinishImplFrame to LTHI. (Closed)

Created:
5 years, 7 months ago by mithro-old
Modified:
5 years, 7 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Adding DidFinishImplFrame to LTHI. This change moves the responsibility of clearing state inside the LTHI after an impl frame is finished from the thread proxies to the LTHI class. This makes WillBeginImplFrame and DidFinishImplFrame a logical pair. This CL also; * Adds a test that checks the number of WillBeginImplFrame calls matches the DidFinishImplFrame calls. * Cleans up classes in cc/test/layer_tree_test.h around WillBeginImplFrame. * Removes the UpdateCurrentBeginFrameArgs / ResetCurrentBeginFrameArgs methods. * Fixes a bug where STP was calling ResetCurrentBeginFrameArgs twice every frame. BUG=346230, 481810 R=brianderson,enne Committed: https://crrev.com/2caee4f89de17858822c11379da9c6cd80f90708 Cr-Commit-Position: refs/heads/master@{#328689} Committed: https://crrev.com/51693e3839cf85fad73979258c00e5964d627240 Cr-Commit-Position: refs/heads/master@{#328883}

Patch Set 1 #

Patch Set 2 : Removing unused EndTestAfterNoBeginFramesNeeded method. #

Patch Set 3 : Rebasing onto master. #

Total comments: 20

Patch Set 4 : Fixing review comments. #

Total comments: 4

Patch Set 5 : Rebase onto master after landing other patch. #

Total comments: 8

Patch Set 6 : Fixing for Dana's review. #

Patch Set 7 : Removing DCHECK_ON() attempt. #

Patch Set 8 : Adding missing TODO. #

Patch Set 9 : Fixing for Dana's comments. #

Patch Set 10 : Rebase onto master. #

Patch Set 11 : Fixing surfaces_scheduler. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -50 lines) Patch
M cc/resources/tile_manager_perftest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/scheduler/scheduler.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -2 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 7 8 6 chunks +21 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -14 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +57 lines, -1 line 0 comments Download
M cc/trees/single_thread_proxy.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -1 line 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +16 lines, -4 lines 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M components/surfaces/surfaces_scheduler.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
M components/surfaces/surfaces_scheduler.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 31 (8 generated)
mithro-old
Hi Brian / Enne, This patch came out of trying to write a test for ...
5 years, 7 months ago (2015-04-29 00:46:39 UTC) #2
danakj
https://codereview.chromium.org/1111743002/diff/40001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1111743002/diff/40001/cc/trees/layer_tree_host_unittest.cc#newcode5522 cc/trees/layer_tree_host_unittest.cc:5522: did_begin_impl_frame_deadline_count_ + 1); nit: reverse the order of the ...
5 years, 7 months ago (2015-04-30 18:43:38 UTC) #4
sunnyps
I like the patch overall. Can you please rename DidBeginImplFrameDeadline to DidFinishImplFrame everywhere? The deadline ...
5 years, 7 months ago (2015-05-01 00:31:44 UTC) #6
mithro-old
https://codereview.chromium.org/1111743002/diff/40001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1111743002/diff/40001/cc/trees/layer_tree_host_unittest.cc#newcode5522 cc/trees/layer_tree_host_unittest.cc:5522: did_begin_impl_frame_deadline_count_ + 1); On 2015/04/30 18:43:38, danakj wrote: > ...
5 years, 7 months ago (2015-05-01 02:52:36 UTC) #7
sunnyps
LGTM https://codereview.chromium.org/1111743002/diff/60001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1111743002/diff/60001/cc/trees/layer_tree_host_unittest.cc#newcode5505 cc/trees/layer_tree_host_unittest.cc:5505: did_begin_impl_frame_finish_count_(0) {} nit: did_finish_impl_frame_count_ https://codereview.chromium.org/1111743002/diff/60001/cc/trees/layer_tree_host_unittest.cc#newcode5550 cc/trees/layer_tree_host_unittest.cc:5550: EXPECT_EQ(did_begin_impl_frame_finish_count_, kExpectedNumImplFrames); ...
5 years, 7 months ago (2015-05-01 20:35:25 UTC) #8
mithro-old
https://codereview.chromium.org/1111743002/diff/60001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1111743002/diff/60001/cc/trees/layer_tree_host_unittest.cc#newcode5505 cc/trees/layer_tree_host_unittest.cc:5505: did_begin_impl_frame_finish_count_(0) {} On 2015/05/01 20:35:25, sunnyps wrote: > nit: ...
5 years, 7 months ago (2015-05-04 01:22:58 UTC) #9
danakj
https://codereview.chromium.org/1111743002/diff/80001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1111743002/diff/80001/cc/trees/layer_tree_host_unittest.cc#newcode5548 cc/trees/layer_tree_host_unittest.cc:5548: if (!threaded_) { You can just do HasImplThread() there's ...
5 years, 7 months ago (2015-05-04 17:39:20 UTC) #10
danakj
https://codereview.chromium.org/1111743002/diff/40001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1111743002/diff/40001/cc/trees/layer_tree_host_unittest.cc#newcode5527 cc/trees/layer_tree_host_unittest.cc:5527: if (did_begin_impl_frame_deadline_count_ < kExpectedNumImplFrames - 1) On 2015/05/01 02:52:35, ...
5 years, 7 months ago (2015-05-04 17:42:05 UTC) #11
danakj
https://codereview.chromium.org/1111743002/diff/80001/cc/trees/single_thread_proxy.cc File cc/trees/single_thread_proxy.cc (right): https://codereview.chromium.org/1111743002/diff/80001/cc/trees/single_thread_proxy.cc#newcode48 cc/trees/single_thread_proxy.cc:48: inside_impl_frame_(false), We could make this variable only exist when ...
5 years, 7 months ago (2015-05-04 17:43:00 UTC) #12
mithro-old
Hi Dana, Thanks for your review. Are you happy for this to land now? Tim ...
5 years, 7 months ago (2015-05-05 04:13:13 UTC) #13
mithro-old
Updated the commit message to match the rename to DidFinishImplFrame.
5 years, 7 months ago (2015-05-05 04:33:31 UTC) #14
danakj
https://codereview.chromium.org/1111743002/diff/40001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1111743002/diff/40001/cc/trees/layer_tree_host_unittest.cc#newcode5527 cc/trees/layer_tree_host_unittest.cc:5527: if (did_begin_impl_frame_deadline_count_ < kExpectedNumImplFrames - 1) On 2015/05/05 04:13:13, ...
5 years, 7 months ago (2015-05-05 18:42:00 UTC) #15
mithro-old
Hi Dana, Please see the updates. This patch now needs https://codereview.chromium.org/1126973002/ to land as it ...
5 years, 7 months ago (2015-05-06 02:14:11 UTC) #16
danakj
LGTM
5 years, 7 months ago (2015-05-06 22:44:44 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1111743002/180001
5 years, 7 months ago (2015-05-07 01:18:38 UTC) #20
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 7 months ago (2015-05-07 02:50:42 UTC) #21
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/2caee4f89de17858822c11379da9c6cd80f90708 Cr-Commit-Position: refs/heads/master@{#328689}
5 years, 7 months ago (2015-05-07 02:52:20 UTC) #22
Kunihiko Sakamoto
A revert of this CL (patchset #10 id:180001) has been created in https://codereview.chromium.org/1127963003/ by ksakamoto@chromium.org. ...
5 years, 7 months ago (2015-05-07 03:30:48 UTC) #23
mithro-old
Hi owners of components/surfaces, I need a LGTM from one of you to land this ...
5 years, 7 months ago (2015-05-07 04:05:51 UTC) #25
sky
LGTM
5 years, 7 months ago (2015-05-07 16:22:20 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1111743002/200001
5 years, 7 months ago (2015-05-07 23:41:32 UTC) #29
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 7 months ago (2015-05-07 23:52:56 UTC) #30
commit-bot: I haz the power
5 years, 7 months ago (2015-05-07 23:56:01 UTC) #31
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/51693e3839cf85fad73979258c00e5964d627240
Cr-Commit-Position: refs/heads/master@{#328883}

Powered by Google App Engine
This is Rietveld 408576698