diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-08 00:00:19 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-08 00:00:19 +0000 |
commit | e0eb7c401b51dc1761e5926c0e8e9c7872c6abdd (patch) | |
tree | 9e0d4323e0df867411df7ee85903bb71f46d0a9a /cc/picture_layer_tiling_set.h | |
parent | 96036b5cda2f5802f11823de205287c7f0a43834 (diff) | |
download | chromium_src-e0eb7c401b51dc1761e5926c0e8e9c7872c6abdd.zip chromium_src-e0eb7c401b51dc1761e5926c0e8e9c7872c6abdd.tar.gz chromium_src-e0eb7c401b51dc1761e5926c0e8e9c7872c6abdd.tar.bz2 |
cc: Use maximum tiling contents scales for picture layer scale
Due to the way the math works out for calculating which tiles to use for a
given content rect, the content scale for a picture layer has to be the maximum
of all the tilings on a layer.
Currently, each layer only has one tiling, but this change also creates the
infrastructure for adding different tilings over time and clamping contents
scales to a minimum.
NOTRY=true
R=danakj@chromium.org
BUG=155209
Review URL: https://chromiumcodereview.appspot.com/11777008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175420 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/picture_layer_tiling_set.h')
-rw-r--r-- | cc/picture_layer_tiling_set.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/picture_layer_tiling_set.h b/cc/picture_layer_tiling_set.h index 11e2796..383884e 100644 --- a/cc/picture_layer_tiling_set.h +++ b/cc/picture_layer_tiling_set.h @@ -30,6 +30,7 @@ class CC_EXPORT PictureLayerTilingSet { float contents_scale, gfx::Size tile_size); size_t num_tilings() const { return tilings_.size(); } + PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; } void Reset(); |