Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2894)

Unified Diff: cc/layers/picture_image_layer_impl.cc

Issue 12954006: Let AreVisibleResourcesReady return correct value for PictureImageLayerImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/picture_image_layer_impl.h ('k') | cc/layers/picture_image_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9fa401f0339df02771de0ba41c5df1e7167128a3..5c18d017373a2ed5017bfbca2d074055287edb08 100644
--- a/cc/layers/picture_image_layer_impl.cc
+++ b/cc/layers/picture_image_layer_impl.cc
@@ -31,10 +31,15 @@ void PictureImageLayerImpl::GetDebugBorderProperties(
*width = DebugColors::ImageLayerBorderWidth(layer_tree_impl());
}
+bool PictureImageLayerImpl::ShouldAdjustRasterScale(
+ bool animating_transform_to_screen) const {
+ return false;
+}
+
void PictureImageLayerImpl::CalculateRasterContentsScale(
bool animating_transform_to_screen,
float* raster_contents_scale,
- float* low_res_raster_contents_scale) {
+ float* low_res_raster_contents_scale) const {
// 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());
« no previous file with comments | « cc/layers/picture_image_layer_impl.h ('k') | cc/layers/picture_image_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698