| Index: cc/playback/draw_image.h
|
| diff --git a/cc/playback/draw_image.h b/cc/playback/draw_image.h
|
| index 4daa16075debdfcb41330afbdc428bbcb8f9ea7b..6323a636f6412f02eb803cf0b65c02cbf2cb1030 100644
|
| --- a/cc/playback/draw_image.h
|
| +++ b/cc/playback/draw_image.h
|
| @@ -34,8 +34,12 @@ class CC_EXPORT DrawImage {
|
| const SkMatrix& matrix() const { return matrix_; }
|
|
|
| DrawImage ApplyScale(float scale) const {
|
| + return ApplyScale(SkSize::Make(scale, scale));
|
| + }
|
| +
|
| + DrawImage ApplyScale(const SkSize& scale) const {
|
| SkMatrix scaled_matrix = matrix_;
|
| - scaled_matrix.postScale(scale, scale);
|
| + scaled_matrix.postScale(scale.width(), scale.height());
|
| return DrawImage(image_, src_rect_, filter_quality_, scaled_matrix);
|
| }
|
|
|
|
|