Chromium Code Reviews| Index: cc/output/render_surface_filters.cc |
| diff --git a/cc/output/render_surface_filters.cc b/cc/output/render_surface_filters.cc |
| index 337d48c20faaa4a20f410ed36de0656b5fd9113e..95afed56490672a30de7210534910f55368c38b1 100644 |
| --- a/cc/output/render_surface_filters.cc |
| +++ b/cc/output/render_surface_filters.cc |
| @@ -148,10 +148,9 @@ void GetSepiaMatrix(float amount, SkScalar matrix[20]) { |
| skia::RefPtr<SkImageFilter> CreateMatrixImageFilter( |
| const SkScalar matrix[20], |
| const skia::RefPtr<SkImageFilter>& input) { |
| - skia::RefPtr<SkColorFilter> color_filter = |
| - skia::AdoptRef(SkColorMatrixFilter::Create(matrix)); |
| - return skia::AdoptRef( |
| - SkColorFilterImageFilter::Create(color_filter.get(), input.get())); |
| + return skia::AdoptRef(SkColorFilterImageFilter::Create( |
| + SkColorFilter::MakeMatrixFilterRowMajor255(matrix).release(), |
|
f(malita)
2016/03/26 14:16:49
Ditto.
|
| + input.get())); |
| } |
| } // namespace |