| Index: gm/colorfilterimagefilter.cpp
|
| diff --git a/gm/colorfilterimagefilter.cpp b/gm/colorfilterimagefilter.cpp
|
| index 3227dfba178956b3b2a56d9a7c3ee4e1848386a2..f2f46fd8888b7ce364e010357fdc6a12c6533641 100644
|
| --- a/gm/colorfilterimagefilter.cpp
|
| +++ b/gm/colorfilterimagefilter.cpp
|
| @@ -28,7 +28,7 @@ static SkImageFilter* make_brightness(float amount, SkImageFilter* input = NULL)
|
| 0, 1, 0, 0, amount255,
|
| 0, 0, 1, 0, amount255,
|
| 0, 0, 0, 1, 0 };
|
| - SkAutoTUnref<SkColorFilter> filter(new SkColorMatrixFilter(matrix));
|
| + SkAutoTUnref<SkColorFilter> filter(SkColorMatrixFilter::Create(matrix));
|
| return SkColorFilterImageFilter::Create(filter, input);
|
| }
|
|
|
| @@ -39,7 +39,7 @@ static SkImageFilter* make_grayscale(SkImageFilter* input = NULL) {
|
| matrix[1] = matrix[6] = matrix[11] = 0.7152f;
|
| matrix[2] = matrix[7] = matrix[12] = 0.0722f;
|
| matrix[18] = 1.0f;
|
| - SkAutoTUnref<SkColorFilter> filter(new SkColorMatrixFilter(matrix));
|
| + SkAutoTUnref<SkColorFilter> filter(SkColorMatrixFilter::Create(matrix));
|
| return SkColorFilterImageFilter::Create(filter, input);
|
| }
|
|
|
|
|