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

Issue 1349913002: Cache gpu suitability in DisplayItemList, remove SetUnsuitable...ForTesting (Closed)

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

Description

Cache gpu suitability in DisplayItemList, remove SetUnsuitable...ForTesting This patch moves the gpu suitability "cache" into display_item_list so that calls to DisplayItemList::IsSuitableForGpuRasterization are fast. With the cache moved we no longer need to track suitability in the recording source and can remove SetUnsuitableForGpuRasterizationForTesting. BUG=524314 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/5d8f98c33491997b3ffa1c8494fe6014c4b8e4c9 Cr-Commit-Position: refs/heads/master@{#349999}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Address reviewer comments #

Patch Set 3 : Cleanup #

Total comments: 7

Patch Set 4 : More reviewer comments #

Patch Set 5 : Cleanup tests to not check default suitability #

Patch Set 6 : Needs more nullptr #

Total comments: 2

Patch Set 7 : Update LayerTreeHostTestGpuRasterizationDefault #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -90 lines) Patch
M cc/layers/picture_layer_unittest.cc View 1 2 3 4 2 chunks +19 lines, -4 lines 1 comment Download
M cc/playback/display_item_list.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M cc/playback/display_item_list.cc View 1 2 3 4 5 4 chunks +16 lines, -17 lines 0 comments Download
M cc/playback/display_list_recording_source.h View 1 2 chunks +0 lines, -3 lines 0 comments Download
M cc/playback/display_list_recording_source.cc View 1 2 3 4 5 6 5 chunks +7 lines, -11 lines 0 comments Download
M cc/playback/picture_pile.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/playback/picture_pile.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/playback/recording_source.h View 1 chunk +0 lines, -3 lines 0 comments Download
M cc/test/fake_display_list_recording_source.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M cc/test/fake_display_list_recording_source.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 9 chunks +55 lines, -39 lines 5 comments Download

Messages

Total messages: 47 (12 generated)
pdr.
5 years, 3 months ago (2015-09-16 23:00:11 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1349913002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1349913002/1
5 years, 3 months ago (2015-09-16 23:00:49 UTC) #4
danakj
Thanks! A few nitty nits and one question, https://codereview.chromium.org/1349913002/diff/1/cc/layers/picture_layer_unittest.cc File cc/layers/picture_layer_unittest.cc (right): https://codereview.chromium.org/1349913002/diff/1/cc/layers/picture_layer_unittest.cc#newcode93 cc/layers/picture_layer_unittest.cc:93: FakeDisplayListRecordingSource* ...
5 years, 3 months ago (2015-09-16 23:04:49 UTC) #5
danakj
Thanks! A few nitty nits and one question,
5 years, 3 months ago (2015-09-16 23:04:50 UTC) #6
hendrikw
https://codereview.chromium.org/1349913002/diff/1/cc/layers/picture_layer_unittest.cc File cc/layers/picture_layer_unittest.cc (right): https://codereview.chromium.org/1349913002/diff/1/cc/layers/picture_layer_unittest.cc#newcode103 cc/layers/picture_layer_unittest.cc:103: EXPECT_FALSE(recording_source->IsSuitableForGpuRasterization()); This part of the test is a bit ...
5 years, 3 months ago (2015-09-16 23:15:57 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/120614) android_chromium_gn_compile_dbg on ...
5 years, 3 months ago (2015-09-16 23:16:56 UTC) #9
danakj
https://codereview.chromium.org/1349913002/diff/1/cc/layers/picture_layer_unittest.cc File cc/layers/picture_layer_unittest.cc (right): https://codereview.chromium.org/1349913002/diff/1/cc/layers/picture_layer_unittest.cc#newcode103 cc/layers/picture_layer_unittest.cc:103: EXPECT_FALSE(recording_source->IsSuitableForGpuRasterization()); On 2015/09/16 23:15:57, hendrikw wrote: > This part ...
5 years, 3 months ago (2015-09-16 23:20:50 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1349913002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1349913002/40001
5 years, 3 months ago (2015-09-17 19:57:36 UTC) #12
pdr.
PTAL https://codereview.chromium.org/1349913002/diff/1/cc/layers/picture_layer_unittest.cc File cc/layers/picture_layer_unittest.cc (right): https://codereview.chromium.org/1349913002/diff/1/cc/layers/picture_layer_unittest.cc#newcode93 cc/layers/picture_layer_unittest.cc:93: FakeDisplayListRecordingSource* recording_source = On 2015/09/16 at 23:04:49, danakj ...
5 years, 3 months ago (2015-09-17 20:52:45 UTC) #13
danakj
https://codereview.chromium.org/1349913002/diff/1/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1349913002/diff/1/cc/trees/layer_tree_host_unittest.cc#newcode4509 cc/trees/layer_tree_host_unittest.cc:4509: FakeDisplayListRecordingSource* recording_source = On 2015/09/17 20:52:45, pdr wrote: > ...
5 years, 3 months ago (2015-09-17 21:11:32 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-17 21:23:48 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1349913002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1349913002/60001
5 years, 3 months ago (2015-09-18 22:39:45 UTC) #18
pdr.
https://codereview.chromium.org/1349913002/diff/40001/cc/playback/display_item_list.cc File cc/playback/display_item_list.cc (right): https://codereview.chromium.org/1349913002/diff/40001/cc/playback/display_item_list.cc#newcode155 cc/playback/display_item_list.cc:155: is_suitable_for_gpu_rasterization_ &= On 2015/09/17 at 21:11:32, danakj wrote: > ...
5 years, 3 months ago (2015-09-18 22:40:14 UTC) #19
danakj
https://codereview.chromium.org/1349913002/diff/40001/cc/playback/display_list_recording_source.cc File cc/playback/display_list_recording_source.cc (right): https://codereview.chromium.org/1349913002/diff/40001/cc/playback/display_list_recording_source.cc#newcode220 cc/playback/display_list_recording_source.cc:220: return !display_list_ || display_list_->IsSuitableForGpuRasterization(); On 2015/09/18 22:40:14, pdr wrote: ...
5 years, 3 months ago (2015-09-18 22:42:07 UTC) #20
danakj
(or did you see this as a crash? do you have a callstack?) On Fri, ...
5 years, 3 months ago (2015-09-18 22:47:03 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-18 23:42:59 UTC) #23
pdr.
On 2015/09/18 at 22:40:14, pdr wrote: > https://codereview.chromium.org/1349913002/diff/40001/cc/playback/display_item_list.cc > File cc/playback/display_item_list.cc (right): > > https://codereview.chromium.org/1349913002/diff/40001/cc/playback/display_item_list.cc#newcode155 ...
5 years, 3 months ago (2015-09-18 23:52:39 UTC) #24
danakj
On Fri, Sep 18, 2015 at 4:52 PM, <pdr@chromium.org> wrote: > On 2015/09/18 at 22:40:14, ...
5 years, 3 months ago (2015-09-18 23:56:16 UTC) #25
pdr.
> >> On 2015/09/17 at 21:11:32, danakj wrote: > >> > when/how can display_list_ be ...
5 years, 3 months ago (2015-09-19 04:24:29 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1349913002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1349913002/100001
5 years, 3 months ago (2015-09-19 04:24:45 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-19 05:35:03 UTC) #30
danakj
Cool! These changes LGTM, but I don't think we have any test that checks IsSuitableForGPURaster() ...
5 years, 3 months ago (2015-09-21 17:47:34 UTC) #31
pdr.
https://codereview.chromium.org/1349913002/diff/100001/cc/playback/display_list_recording_source.cc File cc/playback/display_list_recording_source.cc (right): https://codereview.chromium.org/1349913002/diff/100001/cc/playback/display_list_recording_source.cc#newcode222 cc/playback/display_list_recording_source.cc:222: DCHECK(display_list_.get()); On 2015/09/21 at 17:47:34, danakj wrote: > nit: ...
5 years, 3 months ago (2015-09-21 18:13:41 UTC) #32
pdr.
On 2015/09/21 at 17:47:34, danakj wrote: > Cool! These changes LGTM, but I don't think ...
5 years, 3 months ago (2015-09-21 18:14:05 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1349913002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1349913002/120001
5 years, 3 months ago (2015-09-21 18:19:18 UTC) #35
danakj
Awesome possum. Thanks LGTM
5 years, 3 months ago (2015-09-21 18:24:16 UTC) #36
hendrikw
https://codereview.chromium.org/1349913002/diff/120001/cc/layers/picture_layer_unittest.cc File cc/layers/picture_layer_unittest.cc (right): https://codereview.chromium.org/1349913002/diff/120001/cc/layers/picture_layer_unittest.cc#newcode112 cc/layers/picture_layer_unittest.cc:112: EXPECT_FALSE(recording_source->IsSuitableForGpuRasterization()); You're still testing 100% test code here, but ...
5 years, 3 months ago (2015-09-21 18:36:47 UTC) #37
danakj
https://codereview.chromium.org/1349913002/diff/120001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1349913002/diff/120001/cc/trees/layer_tree_host_unittest.cc#newcode4469 cc/trees/layer_tree_host_unittest.cc:4469: EXPECT_FALSE(recording_source_->IsSuitableForGpuRasterization()); On 2015/09/21 18:36:46, hendrikw wrote: > Same thing ...
5 years, 3 months ago (2015-09-21 18:43:28 UTC) #38
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-21 19:47:01 UTC) #40
pdr.
hendrikw, are you okay with danakj's response?
5 years, 3 months ago (2015-09-21 19:49:52 UTC) #41
hendrikw
On 2015/09/21 18:43:28, danakj wrote: > https://codereview.chromium.org/1349913002/diff/120001/cc/trees/layer_tree_host_unittest.cc > File cc/trees/layer_tree_host_unittest.cc (right): > > https://codereview.chromium.org/1349913002/diff/120001/cc/trees/layer_tree_host_unittest.cc#newcode4469 > ...
5 years, 3 months ago (2015-09-21 19:52:24 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1349913002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1349913002/120001
5 years, 3 months ago (2015-09-21 19:54:20 UTC) #44
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 3 months ago (2015-09-21 20:00:46 UTC) #45
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/5d8f98c33491997b3ffa1c8494fe6014c4b8e4c9 Cr-Commit-Position: refs/heads/master@{#349999}
5 years, 3 months ago (2015-09-21 20:01:42 UTC) #46
pdr.
5 years, 3 months ago (2015-09-22 17:59:59 UTC) #47
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/1361663003/ by pdr@chromium.org.

The reason for reverting is: Crashes :'( http://crbug.com/534810.

Powered by Google App Engine
This is Rietveld 408576698