• danakj's avatar
    cc: Don't make tiles for mask layers that are too big for a texture. · 132fdfe1
    danakj authored
    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
    
    Review URL: https://codereview.chromium.org/547463002
    
    Cr-Commit-Position: refs/heads/master@{#293656}
    132fdfe1
picture_pile_base.cc 8.8 KB