summaryrefslogtreecommitdiffstats
path: root/cc/layers/picture_image_layer_impl.h
diff options
context:
space:
mode:
authorepenner@chromium.org <epenner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-20 03:58:08 +0000
committerepenner@chromium.org <epenner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-20 03:58:08 +0000
commit834474724d39dab69252b8291ef5cb584147bd71 (patch)
treecec30bc3734f81a69eb65f348261d166b2185ac1 /cc/layers/picture_image_layer_impl.h
parenta503807483c3242bb4e758a332177bbd1c2a36db (diff)
downloadchromium_src-834474724d39dab69252b8291ef5cb584147bd71.zip
chromium_src-834474724d39dab69252b8291ef5cb584147bd71.tar.gz
chromium_src-834474724d39dab69252b8291ef5cb584147bd71.tar.bz2
We used to create tilings only when exceeding a certain scale
difference from the ideal scale. This meant that in the worst case our only available high-res tiling was 2X the required resolution. This patch adjusts the creation of new tilings, to ensure we always have a tiling option that is less-than-or-equal-to the current ideal scale. BUG=307206 Review URL: https://codereview.chromium.org/27251002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236129 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/picture_image_layer_impl.h')
-rw-r--r--cc/layers/picture_image_layer_impl.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/cc/layers/picture_image_layer_impl.h b/cc/layers/picture_image_layer_impl.h
index c475e53..0b3b246 100644
--- a/cc/layers/picture_image_layer_impl.h
+++ b/cc/layers/picture_image_layer_impl.h
@@ -34,10 +34,8 @@ class CC_EXPORT PictureImageLayerImpl : public PictureLayerImpl {
virtual bool ShouldAdjustRasterScale(
bool animating_transform_to_screen) const OVERRIDE;
- virtual void CalculateRasterContentsScale(
- bool animating_transform_to_screen,
- float* raster_contents_scale,
- float* low_res_raster_contents_scale) const OVERRIDE;
+ virtual void RecalculateRasterScales(
+ bool animating_transform_to_screen) OVERRIDE;
virtual void GetDebugBorderProperties(
SkColor* color, float* width) const OVERRIDE;