Descriptioncc: 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 #
Messages
Total messages: 23 (7 generated)
|