-
- // As we apply extra scale transform on this layer which will propagate to the
- // sublayers, here undo the scale on sublayers.
- gfx::Transform sublayer_transform_with_inverse_bounds_scale;
- sublayer_transform_with_inverse_bounds_scale.Scale(1.f / bounds_scale_x,
- 1.f / bounds_scale_y);
- sublayer_transform_with_inverse_bounds_scale.PreconcatTransform(
- original_sublayer_transform_);
- layer_->SetSublayerTransform(sublayer_transform_with_inverse_bounds_scale);