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

Issue 547463002: cc: Don't make tiles for mask layers that are too big for a texture. (Closed)

Created:
6 years, 3 months ago by danakj
Modified:
6 years, 3 months ago
Reviewers:
vmpstr, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Don't make tiles for mask layers that are too big for a texture. If a mask layer's width or height are larger than the max texture size, we do not use the contents of the mask layer. So if we're not going to use the contents, there's no reason to make tiles and allocate memory for them. This changes PictureLayerImpl to return an empty tile size for masks that are too large to have tiles. Then changes PictureLayerTiling to use the empty tile size as a signal to make the whole tiling an empty size. Last, we use the empty tile size to also signal not making a low res tiling, so that masks continue to not get a low res tiling if they are large. R=enne, vmpstr BUG=409984 Committed: https://crrev.com/132fdfe17dd03c0066e27fe876602122c522aa8b Cr-Commit-Position: refs/heads/master@{#293656}

Patch Set 1 #

Patch Set 2 : hugemasks: . #

Total comments: 6

Patch Set 3 : hugemasks: is_mask-on-pile #

Patch Set 4 : hugemasks: rebase-past-mask-analysis #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -52 lines) Patch
M cc/layers/picture_layer.cc View 1 2 3 chunks +1 line, -4 lines 0 comments Download
M cc/layers/picture_layer_impl.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 7 chunks +17 lines, -23 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 6 chunks +57 lines, -5 lines 0 comments Download
M cc/resources/picture_layer_tiling.cc View 3 chunks +16 lines, -8 lines 0 comments Download
M cc/resources/picture_pile_base.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M cc/resources/picture_pile_base.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 2 chunks +1 line, -5 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
danakj
This fixes the memory problems on the github site at the cost of "correctness", which ...
6 years, 3 months ago (2014-09-04 23:27:59 UTC) #1
danakj
On 2014/09/04 23:27:59, danakj wrote: > This fixes the memory problems on the github site ...
6 years, 3 months ago (2014-09-05 15:22:29 UTC) #2
enne (OOO)
https://codereview.chromium.org/547463002/diff/20001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/547463002/diff/20001/cc/layers/picture_layer_impl_unittest.cc#newcode1218 cc/layers/picture_layer_impl_unittest.cc:1218: EXPECT_BOTH_EQ(HighResTiling()->AllTilesForTesting().size(), 1u); "there should be no tiles" but 1u? ...
6 years, 3 months ago (2014-09-05 17:41:46 UTC) #3
vmpstr
https://codereview.chromium.org/547463002/diff/20001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/547463002/diff/20001/cc/layers/picture_layer_impl.cc#newcode649 cc/layers/picture_layer_impl.cc:649: layer_tree_impl()->resource_provider()->max_texture_size(); Is this max_texture_size the same as layer_tree_impl()->MaxTextureSize (which ...
6 years, 3 months ago (2014-09-05 17:44:57 UTC) #4
danakj
PTAL! While fixing my test, I cleaned up how we pass around the is_mask_ value. ...
6 years, 3 months ago (2014-09-05 22:09:52 UTC) #5
enne (OOO)
lgtm
6 years, 3 months ago (2014-09-05 22:55:34 UTC) #6
vmpstr
lgtm as well
6 years, 3 months ago (2014-09-05 23:05:30 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/547463002/40001
6 years, 3 months ago (2014-09-05 23:48:00 UTC) #9
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-06 10:12:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/547463002/40001
6 years, 3 months ago (2014-09-06 19:29:33 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/57554)
6 years, 3 months ago (2014-09-06 19:45:18 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/547463002/60001
6 years, 3 months ago (2014-09-06 22:51:20 UTC) #17
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-07 00:51:39 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/547463002/60001
6 years, 3 months ago (2014-09-07 05:31:10 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001) as ad79a318f83ac3a7364d57753bbc0a1bfb5c85d6
6 years, 3 months ago (2014-09-07 06:09:03 UTC) #22
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:44:05 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/132fdfe17dd03c0066e27fe876602122c522aa8b
Cr-Commit-Position: refs/heads/master@{#293656}

Powered by Google App Engine
This is Rietveld 408576698