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

Unified Diff: gm/colorfilters.cpp

Issue 1574023002: move declaration of CreateLightingFilter into SkColorMatrixFilter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: don't remove old impl yet Created 4 years, 11 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 | gm/textbloblooper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/colorfilters.cpp
diff --git a/gm/colorfilters.cpp b/gm/colorfilters.cpp
index 2d220d2c1d3ace23d7b68e71505b17f8d7ef9c8c..dcd24d9ce431536dbcd1a84b319985de86f5edb4 100644
--- a/gm/colorfilters.cpp
+++ b/gm/colorfilters.cpp
@@ -7,7 +7,7 @@
#include "gm.h"
#include "SkCanvas.h"
-#include "SkColorFilter.h"
+#include "SkColorMatrixFilter.h"
#include "SkGradientShader.h"
static SkShader* make_shader(const SkRect& bounds) {
@@ -31,7 +31,7 @@ static void install_nothing(SkPaint* paint, uint32_t, uint32_t) {
}
static void install_lighting(SkPaint* paint, uint32_t mul, uint32_t add) {
- paint->setColorFilter(SkColorFilter::CreateLightingFilter(mul, add))->unref();
+ paint->setColorFilter(SkColorMatrixFilter::CreateLightingFilter(mul, add))->unref();
}
class ColorFiltersGM : public skiagm::GM {
« no previous file with comments | « no previous file | gm/textbloblooper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698