diff options
author | danakj <danakj@chromium.org> | 2014-09-06 23:08:16 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-07 06:09:33 +0000 |
commit | 132fdfe17dd03c0066e27fe876602122c522aa8b (patch) | |
tree | 138f3b9eb8d134e908a60584ec8e48b3332f0b9a /cc/trees/layer_tree_impl.h | |
parent | 272c8d7b1978f66b18b9621bf1ec4c9692f18e9f (diff) | |
download | chromium_src-132fdfe17dd03c0066e27fe876602122c522aa8b.zip chromium_src-132fdfe17dd03c0066e27fe876602122c522aa8b.tar.gz chromium_src-132fdfe17dd03c0066e27fe876602122c522aa8b.tar.bz2 |
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
Review URL: https://codereview.chromium.org/547463002
Cr-Commit-Position: refs/heads/master@{#293656}
Diffstat (limited to 'cc/trees/layer_tree_impl.h')
-rw-r--r-- | cc/trees/layer_tree_impl.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h index 76d3868..c7b4acf 100644 --- a/cc/trees/layer_tree_impl.h +++ b/cc/trees/layer_tree_impl.h @@ -88,7 +88,6 @@ class CC_EXPORT LayerTreeImpl { LayerImpl* FindActiveTreeLayerById(int id); LayerImpl* FindPendingTreeLayerById(int id); LayerImpl* FindRecycleTreeLayerById(int id); - int MaxTextureSize() const; bool PinchGestureActive() const; BeginFrameArgs CurrentBeginFrameArgs() const; base::TimeDelta begin_impl_frame_interval() const; |