summaryrefslogtreecommitdiffstats
path: root/cc/picture_layer_tiling_set.h
diff options
context:
space:
mode:
authorilevy@chromium.org <ilevy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-31 03:33:47 +0000
committerilevy@chromium.org <ilevy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-31 03:33:47 +0000
commit3951010369a3d0190928ce3ed5bcceec3c83997b (patch)
tree1a3016e335b2742b56c233a1f8d02419fb4968dd /cc/picture_layer_tiling_set.h
parentda90a92493c550b6a0436c7ddd7e7d59fb8954ae (diff)
downloadchromium_src-3951010369a3d0190928ce3ed5bcceec3c83997b.zip
chromium_src-3951010369a3d0190928ce3ed5bcceec3c83997b.tar.gz
chromium_src-3951010369a3d0190928ce3ed5bcceec3c83997b.tar.bz2
Revert 179764
> cc: Let impl-side painting use smaller tiles > > To avoid wasting memory when there are lots of small layers (e.g. mobile > gmail), allow small layers to create smaller tiles. The heuristic is > similar to TiledLayer. If a layer is smaller than the max untiled size, > then just use that content bounds as the size. If a layer has one > larger dimension larger than the max untiled size then tile that > dimension at the max untiled size and clamp the other dimension at the > content size. If a layer is neither of these, then tile using the > default tile size. > > NOTRY=true > R=danakj@chromium.org > BUG=172966 > > > Review URL: https://chromiumcodereview.appspot.com/12087068 Breaking Android Tests (dbg). Also failed android trybot. TBR=enne@chromium.org Review URL: https://codereview.chromium.org/12096078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179783 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/picture_layer_tiling_set.h')
-rw-r--r--cc/picture_layer_tiling_set.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/picture_layer_tiling_set.h b/cc/picture_layer_tiling_set.h
index 197ea42..d6a8950 100644
--- a/cc/picture_layer_tiling_set.h
+++ b/cc/picture_layer_tiling_set.h
@@ -28,7 +28,9 @@ class CC_EXPORT PictureLayerTilingSet {
void SetLayerBounds(gfx::Size layer_bounds);
gfx::Size LayerBounds() const;
- PictureLayerTiling* AddTiling(float contents_scale);
+ PictureLayerTiling* AddTiling(
+ float contents_scale,
+ gfx::Size tile_size);
size_t num_tilings() const { return tilings_.size(); }
PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; }
const PictureLayerTiling* tiling_at(size_t idx) const {