Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(689)

Unified Diff: gm/localmatriximagefilter.cpp

Issue 1402133002: change back to method for localmatrix imagefilter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add comment for const-cast Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/core/SkImageFilter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/localmatriximagefilter.cpp
diff --git a/gm/localmatriximagefilter.cpp b/gm/localmatriximagefilter.cpp
index 1bdc940d925d5f452b690ddb6c7855e18c2a1d4f..64ed6d7b8c9c3bdf43d210b7282ad7d6fe1a4c49 100644
--- a/gm/localmatriximagefilter.cpp
+++ b/gm/localmatriximagefilter.cpp
@@ -86,8 +86,7 @@ protected:
canvas->save();
show_image(canvas, image0, filter);
for (const auto& matrix : matrices) {
- SkAutoTUnref<SkImageFilter> localFilter(
- SkImageFilter::CreateLocalMatrixFilter(matrix, filter));
+ SkAutoTUnref<SkImageFilter> localFilter(filter->newWithLocalMatrix(matrix));
canvas->translate(spacer, 0);
show_image(canvas, image0, localFilter);
}
« no previous file with comments | « no previous file | include/core/SkImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698