Index: cc/layers/picture_layer_impl.cc |
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc |
index 8497191d71c21e181e34dfb4ca863c6464ab3457..ccffabe01bde91876e55748e1d1e6bc45aaf3d4a 100644 |
--- a/cc/layers/picture_layer_impl.cc |
+++ b/cc/layers/picture_layer_impl.cc |
@@ -109,6 +109,7 @@ PictureLayerImpl::PictureLayerImpl(LayerTreeImpl* tree_impl, |
only_used_low_res_last_append_quads_(false), |
is_mask_(is_mask), |
nearest_neighbor_(false), |
+ use_transformed_rasterization_(false), |
is_directly_composited_image_(false) { |
layer_tree_impl()->RegisterPictureLayerImpl(this); |
} |
@@ -145,6 +146,7 @@ void PictureLayerImpl::PushPropertiesTo(LayerImpl* base_layer) { |
layer_impl->twin_layer_ = this; |
layer_impl->SetNearestNeighbor(nearest_neighbor_); |
+ layer_impl->SetUseTransformedRasterization(use_transformed_rasterization_); |
// Solid color layers have no tilings. |
DCHECK(!raster_source_->IsSolidColor() || tilings_->num_tilings() == 0); |
@@ -873,6 +875,14 @@ void PictureLayerImpl::SetNearestNeighbor(bool nearest_neighbor) { |
NoteLayerPropertyChanged(); |
} |
+void PictureLayerImpl::SetUseTransformedRasterization(bool use) { |
+ if (use_transformed_rasterization_ == use) |
+ return; |
+ |
+ use_transformed_rasterization_ = use; |
+ NoteLayerPropertyChanged(); |
+} |
+ |
PictureLayerTiling* PictureLayerImpl::AddTiling(float contents_scale) { |
DCHECK(CanHaveTilings()); |
DCHECK_GE(contents_scale, MinimumContentsScale()); |