Index: cc/layers/picture_image_layer_impl.cc |
diff --git a/cc/layers/picture_image_layer_impl.cc b/cc/layers/picture_image_layer_impl.cc |
index 9c478f0f9a10e01ed72813e3a6a4cd567040c7f6..b82e9b2037f2ce3fb756776ada24d7af335f1118 100644 |
--- a/cc/layers/picture_image_layer_impl.cc |
+++ b/cc/layers/picture_image_layer_impl.cc |
@@ -31,15 +31,17 @@ void PictureImageLayerImpl::GetDebugBorderProperties( |
*width = DebugColors::ImageLayerBorderWidth(layer_tree_impl()); |
} |
+bool PictureImageLayerImpl::ShouldAdjustRasterSourceScale() const { |
+ return false; |
+} |
+ |
void PictureImageLayerImpl::CalculateRasterContentsScale( |
- bool animating_transform_to_screen, |
- float* raster_contents_scale, |
- float* low_res_raster_contents_scale) { |
+ bool animating_transform_to_screen) { |
// Don't scale images during rastering to ensure image quality, save memory |
// and avoid frequent re-rastering on change of scale. |
- *raster_contents_scale = std::max(1.f, MinimumContentsScale()); |
+ raster_contents_scale_ = std::max(1.f, MinimumContentsScale()); |
// We don't need low res tiles. |
- *low_res_raster_contents_scale = *raster_contents_scale; |
+ low_res_raster_contents_scale_ = raster_contents_scale_; |
} |
} // namespace cc |