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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 272283003: Revert 261000 "Re-raster GPU-rasterized layers during scale animations" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 7 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 | « no previous file | cc/layers/picture_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_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index 8817c9bb98548fd30eccee1fb6ef604de3141165..6b2a0759e0d6480ab8acfc78f4069595e0b4da9a 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -1034,11 +1034,6 @@ bool PictureLayerImpl::ShouldAdjustRasterScale(
if (was_animating_transform_to_screen_ != animating_transform_to_screen)
return true;
- if (animating_transform_to_screen &&
- raster_contents_scale_ != ideal_contents_scale_ &&
- use_gpu_rasterization())
- return true;
-
bool is_pinching = layer_tree_impl()->PinchGestureActive();
if (is_pinching && raster_page_scale_) {
// We change our raster scale when it is:
@@ -1133,10 +1128,10 @@ void PictureLayerImpl::RecalculateRasterScales(
raster_contents_scale_ =
std::max(raster_contents_scale_, MinimumContentsScale());
- // If we're not re-rasterizing during animation, rasterize at the maximum
+ // Since we're not re-rasterizing during animation, rasterize at the maximum
// scale that will occur during the animation, if the maximum scale is
// known.
- if (animating_transform_to_screen && !use_gpu_rasterization()) {
+ if (animating_transform_to_screen) {
if (maximum_animation_contents_scale > 0.f) {
raster_contents_scale_ =
std::max(raster_contents_scale_, maximum_animation_contents_scale);
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698