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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 256343002: The snap ratio is wrong (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index 94c3d201639d0dd90a29545ba18ca067f43edd8a..80f2dc1b4e1b8e9ea852d9b0b17af4bf1c2441f2 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -1051,7 +1051,7 @@ bool PictureLayerImpl::ShouldAdjustRasterScale(
float PictureLayerImpl::SnappedContentsScale(float scale) {
// If a tiling exists within the max snapping ratio, snap to its scale.
float snapped_contents_scale = scale;
- float snapped_ratio = kSnapToExistingTilingRatio;
+ float snapped_ratio = kMaxScaleRatioDuringPinch;
danakj 2014/04/29 17:30:04 This was purposely written as a separate constant.
for (size_t i = 0; i < tilings_->num_tilings(); ++i) {
float tiling_contents_scale = tilings_->tiling_at(i)->contents_scale();
float ratio = PositiveRatio(tiling_contents_scale, scale);
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698