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

Issue 260963008: Fixing crash in PictureLayerImpl::MarkVisibleResourcesAsRequired when low-res tiles are disabled (Closed)

Created:
6 years, 7 months ago by Sergey
Modified:
6 years, 6 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fixing crash in PictureLayerImpl::MarkVisibleResourcesAsRequired when low-res tiles are disabled and adjusting unit tests for it. Disabling low resolution tiling was added here: https://codereview.chromium.org/196473007/ However, if we just add switch --disable-low-res-tiling, right now it will cause crash (null pointer) in PictureLayerImpl::MarkVisibleResourcesAsRequired. Also adding some unittests for disabled low res tiles, including the ones, that would fail without fix in PictureLayerImpl::MarkVisibleResourcesAsRequired: NoLowResPictureLayerImplTest.NothingRequiredIfAllHighResTilesShared and NoLowResPictureLayerImplTest.NothingRequiredIfActiveMissingTiles. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273736

Patch Set 1 #

Total comments: 2

Patch Set 2 : Adjusting to comments #

Patch Set 3 : Adding missed file and fixing TileManager unit test #

Total comments: 12

Patch Set 4 : Refactoring and more unittests for low res disabled. #

Total comments: 15

Patch Set 5 : Reverting back ImplSidePaintingSettings class and adjusting the code for readability. #

Total comments: 2

Patch Set 6 : Formatting fix #

Total comments: 7

Patch Set 7 : Remaking if condition #

Total comments: 1

Patch Set 8 : Fixing conditions #

Total comments: 1

Patch Set 9 : Resolving conflict #

Patch Set 10 : Fixing unittests #

Patch Set 11 : Merge resolve #

Unified diffs Side-by-side diffs Delta from patch set Stats (+547 lines, -26 lines) Patch
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +27 lines, -23 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +514 lines, -0 lines 0 comments Download
M cc/test/fake_picture_layer_impl.cc View 1 2 3 4 5 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 61 (0 generated)
Sergey
Hello. Tried to disable low resolution tiles, but right now it makes cc_unittests fail a ...
6 years, 7 months ago (2014-05-02 01:29:25 UTC) #1
enne (OOO)
https://codereview.chromium.org/260963008/diff/1/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/260963008/diff/1/cc/layers/picture_layer_impl_unittest.cc#newcode707 cc/layers/picture_layer_impl_unittest.cc:707: host_impl_.settings().create_low_res_tiling ? 2u : 1u, Just make the test ...
6 years, 7 months ago (2014-05-02 17:03:16 UTC) #2
Anton
On 2014/05/02 01:29:25, Sergey wrote: > Hello. Tried to disable low resolution tiles, but right ...
6 years, 7 months ago (2014-05-06 14:48:26 UTC) #3
Sergey
On 2014/05/02 17:03:16, enne wrote: > https://codereview.chromium.org/260963008/diff/1/cc/layers/picture_layer_impl_unittest.cc > File cc/layers/picture_layer_impl_unittest.cc (right): > > https://codereview.chromium.org/260963008/diff/1/cc/layers/picture_layer_impl_unittest.cc#newcode707 > ...
6 years, 7 months ago (2014-05-06 23:36:08 UTC) #4
enne (OOO)
Most of those tests are not testing whether or not you are creating low res ...
6 years, 7 months ago (2014-05-06 23:42:36 UTC) #5
Sergey
Ok, thanks, I will adjust the patch.
6 years, 7 months ago (2014-05-06 23:47:05 UTC) #6
Sergey
> Some people have mentioned that low res tiles were still helping on Nexus 10. ...
6 years, 7 months ago (2014-05-07 00:03:39 UTC) #7
Sergey
Ok, adjusted to comments. Please, re-review :) https://codereview.chromium.org/260963008/diff/1/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/260963008/diff/1/cc/layers/picture_layer_impl_unittest.cc#newcode707 cc/layers/picture_layer_impl_unittest.cc:707: host_impl_.settings().create_low_res_tiling ? ...
6 years, 7 months ago (2014-05-07 02:34:25 UTC) #8
Sergey
Dear all, this is a kind reminder. Thank you. On 2014/05/07 02:34:25, Sergey wrote: > ...
6 years, 7 months ago (2014-05-12 01:10:33 UTC) #9
reveman
https://codereview.chromium.org/260963008/diff/40001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/260963008/diff/40001/cc/layers/picture_layer_impl.cc#newcode793 cc/layers/picture_layer_impl.cc:793: if (ShouldHaveLowResTiling()) { why this change? is this broken ...
6 years, 7 months ago (2014-05-12 02:30:52 UTC) #10
Sergey
Thank you for the comments, made a reply. https://codereview.chromium.org/260963008/diff/40001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/260963008/diff/40001/cc/layers/picture_layer_impl.cc#newcode793 cc/layers/picture_layer_impl.cc:793: if ...
6 years, 7 months ago (2014-05-12 08:07:21 UTC) #11
reveman
https://codereview.chromium.org/260963008/diff/40001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/260963008/diff/40001/cc/layers/picture_layer_impl.cc#newcode793 cc/layers/picture_layer_impl.cc:793: if (ShouldHaveLowResTiling()) { On 2014/05/12 08:07:21, Sergey wrote: > ...
6 years, 7 months ago (2014-05-12 15:44:03 UTC) #12
Sergey
Dear reveman, thanks for your comments. It seems this patch ends up including 3 logically ...
6 years, 7 months ago (2014-05-12 23:37:46 UTC) #13
Sergey
I've adjusted the source code, please, look through. The only thing undecided yet is if ...
6 years, 7 months ago (2014-05-13 05:37:44 UTC) #14
reveman
Doing all this as part of the same patch is fine with me. Just make ...
6 years, 7 months ago (2014-05-13 15:38:05 UTC) #15
Sergey
I've tried to adjust everything to the "commit candidate" level. Please, review. https://codereview.chromium.org/260963008/diff/60001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc ...
6 years, 7 months ago (2014-05-14 05:53:35 UTC) #16
reveman
Please add a single line to the top of the description that describes the change ...
6 years, 7 months ago (2014-05-14 15:13:49 UTC) #17
Sergey
Fixed according to comments, please review. https://codereview.chromium.org/260963008/diff/60001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/260963008/diff/60001/cc/layers/picture_layer_impl.cc#newcode801 cc/layers/picture_layer_impl.cc:801: if (twin_low_res || ...
6 years, 7 months ago (2014-05-15 01:08:04 UTC) #18
reveman
lgtm % enne's review
6 years, 7 months ago (2014-05-15 04:43:52 UTC) #19
enne (OOO)
https://codereview.chromium.org/260963008/diff/90001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/260963008/diff/90001/cc/layers/picture_layer_impl.cc#newcode796 cc/layers/picture_layer_impl.cc:796: if (high_res && (low_res || !should_have_low_res) && twin_layer_ && ...
6 years, 7 months ago (2014-05-15 17:40:05 UTC) #20
Sergey
Dear enne, please re-review. https://codereview.chromium.org/260963008/diff/90001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/260963008/diff/90001/cc/layers/picture_layer_impl.cc#newcode808 cc/layers/picture_layer_impl.cc:808: if (!twin_high_res || (!twin_low_res && ...
6 years, 7 months ago (2014-05-16 02:26:12 UTC) #21
reveman
https://codereview.chromium.org/260963008/diff/90001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/260963008/diff/90001/cc/layers/picture_layer_impl.cc#newcode796 cc/layers/picture_layer_impl.cc:796: if (high_res && (low_res || !should_have_low_res) && twin_layer_ && ...
6 years, 7 months ago (2014-05-16 19:17:56 UTC) #22
enne (OOO)
https://codereview.chromium.org/260963008/diff/90001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/260963008/diff/90001/cc/layers/picture_layer_impl.cc#newcode808 cc/layers/picture_layer_impl.cc:808: if (!twin_high_res || (!twin_low_res && should_have_low_res) || On 2014/05/16 ...
6 years, 7 months ago (2014-05-16 20:46:06 UTC) #23
reveman
On 2014/05/16 20:46:06, enne wrote: > https://codereview.chromium.org/260963008/diff/90001/cc/layers/picture_layer_impl.cc > File cc/layers/picture_layer_impl.cc (right): > > https://codereview.chromium.org/260963008/diff/90001/cc/layers/picture_layer_impl.cc#newcode808 > ...
6 years, 7 months ago (2014-05-16 21:24:30 UTC) #24
Sergey
Please, recheck. All cc_unittests are passed. Tested a bit in android chrome shell -- could ...
6 years, 7 months ago (2014-05-19 08:18:27 UTC) #25
enne (OOO)
lgtm
6 years, 7 months ago (2014-05-19 18:33:04 UTC) #26
Sergey
On 2014/05/19 18:33:04, enne wrote: > lgtm Sorry, what should I do now to land ...
6 years, 7 months ago (2014-05-22 01:09:02 UTC) #27
reveman
On 2014/05/22 01:09:02, Sergey wrote: > On 2014/05/19 18:33:04, enne wrote: > > lgtm > ...
6 years, 7 months ago (2014-05-22 03:48:06 UTC) #28
Sergey
The CQ bit was checked by p.sergey@samsung.com
6 years, 7 months ago (2014-05-22 04:00:24 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/p.sergey@samsung.com/260963008/130001
6 years, 7 months ago (2014-05-22 04:03:14 UTC) #30
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 10:06:55 UTC) #31
Sergey
The CQ bit was unchecked by p.sergey@samsung.com
6 years, 7 months ago (2014-05-22 10:09:56 UTC) #32
Sergey
On 2014/05/22 10:09:56, Sergey wrote: > The CQ bit was unchecked by mailto:p.sergey@samsung.com There are ...
6 years, 7 months ago (2014-05-22 10:11:08 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 10:12:10 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/6576) chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/69161) linux_chromium_clang_dbg ...
6 years, 7 months ago (2014-05-22 10:12:11 UTC) #35
Sergey
The CQ bit was checked by p.sergey@samsung.com
6 years, 7 months ago (2014-05-27 10:37:45 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/p.sergey@samsung.com/260963008/150001
6 years, 7 months ago (2014-05-27 10:38:22 UTC) #37
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-27 12:27:04 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-27 12:32:46 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/77875)
6 years, 7 months ago (2014-05-27 12:32:47 UTC) #40
Sergey
The CQ bit was checked by p.sergey@samsung.com
6 years, 7 months ago (2014-05-28 08:57:02 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/p.sergey@samsung.com/260963008/170001
6 years, 7 months ago (2014-05-28 08:57:41 UTC) #42
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium ...
6 years, 6 months ago (2014-05-28 11:46:02 UTC) #43
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-28 11:48:43 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_clang_dbg/builds/29033)
6 years, 6 months ago (2014-05-28 11:48:44 UTC) #45
Sergey
On 2014/05/28 11:48:44, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 6 months ago (2014-05-28 23:30:15 UTC) #46
enne (OOO)
On 2014/05/28 23:30:15, Sergey wrote: > On 2014/05/28 11:48:44, I haz the power (commit-bot) wrote: ...
6 years, 6 months ago (2014-05-28 23:37:21 UTC) #47
Sergey
On 2014/05/28 23:37:21, enne wrote: > On 2014/05/28 23:30:15, Sergey wrote: > > On 2014/05/28 ...
6 years, 6 months ago (2014-05-29 00:50:07 UTC) #48
enne (OOO)
On 2014/05/29 00:50:07, Sergey wrote: > On 2014/05/28 23:37:21, enne wrote: > > On 2014/05/28 ...
6 years, 6 months ago (2014-05-29 00:51:42 UTC) #49
Sergey
The CQ bit was checked by p.sergey@samsung.com
6 years, 6 months ago (2014-05-29 00:54:44 UTC) #50
Sergey
The CQ bit was unchecked by p.sergey@samsung.com
6 years, 6 months ago (2014-05-29 00:55:21 UTC) #51
Sergey
The CQ bit was checked by p.sergey@samsung.com
6 years, 6 months ago (2014-05-29 00:57:11 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/p.sergey@samsung.com/260963008/190001
6 years, 6 months ago (2014-05-29 00:58:09 UTC) #53
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-05-29 05:04:54 UTC) #54
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-29 05:36:36 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/78753)
6 years, 6 months ago (2014-05-29 05:36:37 UTC) #56
Sergey
On 2014/05/29 05:36:37, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 6 months ago (2014-05-30 01:18:10 UTC) #57
reveman
On 2014/05/30 01:18:10, Sergey wrote: > On 2014/05/29 05:36:37, I haz the power (commit-bot) wrote: ...
6 years, 6 months ago (2014-05-30 01:23:33 UTC) #58
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 6 months ago (2014-05-30 01:23:46 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/p.sergey@samsung.com/260963008/190001
6 years, 6 months ago (2014-05-30 01:25:03 UTC) #60
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 06:19:00 UTC) #61
Message was sent while issue was closed.
Change committed as 273736

Powered by Google App Engine
This is Rietveld 408576698