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

Unified Diff: cc/layers/picture_image_layer_impl.cc

Issue 343653004: cc: Don't add new tilings while syncing a tiling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: managetilingsinsync: perftest Created 6 years, 6 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
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 d46ff8d975e9988618eb11a1a743d803a778a639..247c46adbfc41afd6d9556bfe83301c3508f0306 100644
--- a/cc/layers/picture_image_layer_impl.cc
+++ b/cc/layers/picture_image_layer_impl.cc
@@ -33,21 +33,17 @@ void PictureImageLayerImpl::GetDebugBorderProperties(
*width = DebugColors::ImageLayerBorderWidth(layer_tree_impl());
}
-bool PictureImageLayerImpl::ShouldAdjustRasterScale(
- bool animating_transform_to_screen) const {
+bool PictureImageLayerImpl::ShouldAdjustRasterScale() const {
return false;
}
-void PictureImageLayerImpl::RecalculateRasterScales(
- bool animating_transform_to_screen,
- float maximum_animation_contents_scale) {
- // Defaults from PictureLayerImpl.
- PictureLayerImpl::RecalculateRasterScales(animating_transform_to_screen,
- maximum_animation_contents_scale);
-
+void PictureImageLayerImpl::RecalculateRasterScales() {
// 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_page_scale_ = 1.f;
+ raster_device_scale_ = 1.f;
+ raster_source_scale_ = std::max(1.f, MinimumContentsScale());
+ raster_contents_scale_ = raster_source_scale_;
// We don't need low res tiles.
low_res_raster_contents_scale_ = raster_contents_scale_;
}

Powered by Google App Engine
This is Rietveld 408576698