SK_SUPPORT_LEGACY_DRAWFLTER typo
s/FLTER/FILTER/
R=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1634573002
Review URL: https://codereview.chromium.org/1634573002
diff --git a/gyp/skia_for_android_framework_defines.gypi b/gyp/skia_for_android_framework_defines.gypi
index 1c7562c..8e7fff4 100644
--- a/gyp/skia_for_android_framework_defines.gypi
+++ b/gyp/skia_for_android_framework_defines.gypi
@@ -18,7 +18,7 @@
'SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG',
'SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS',
'SK_SUPPORT_LEGACY_GRADIENT_DITHERING',
- 'SK_SUPPORT_LEGACY_DRAWFLTER',
+ 'SK_SUPPORT_LEGACY_DRAWFILTER',
],
},
}
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 6674151..6d99004 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -1150,12 +1150,12 @@
//////////////////////////////////////////////////////////////////////////
#ifdef SK_INTERNAL
-#ifndef SK_SUPPORT_LEGACY_DRAWFLTER
- #define SK_SUPPORT_LEGACY_DRAWFLTER
+#ifndef SK_SUPPORT_LEGACY_DRAWFILTER
+ #define SK_SUPPORT_LEGACY_DRAWFILTER
#endif
#endif
-#ifdef SK_SUPPORT_LEGACY_DRAWFLTER
+#ifdef SK_SUPPORT_LEGACY_DRAWFILTER
/** Get the current filter object. The filter's reference count is not
affected. The filter is saved/restored, just like the matrix and clip.
@return the canvas' filter (or NULL).
diff --git a/include/utils/SkNWayCanvas.h b/include/utils/SkNWayCanvas.h
index 35eca7b..d25dbc9 100644
--- a/include/utils/SkNWayCanvas.h
+++ b/include/utils/SkNWayCanvas.h
@@ -24,7 +24,7 @@
///////////////////////////////////////////////////////////////////////////
// These are forwarded to the N canvases we're referencing
-#ifdef SK_SUPPORT_LEGACY_DRAWFLTER
+#ifdef SK_SUPPORT_LEGACY_DRAWFILTER
SkDrawFilter* setDrawFilter(SkDrawFilter*) override;
#endif
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index d2d7c59..6b61efe 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -444,7 +444,7 @@
bool skipLayerForImageFilter = false,
const SkRect* rawBounds = nullptr) : fOrigPaint(paint) {
fCanvas = canvas;
-#ifdef SK_SUPPORT_LEGACY_DRAWFLTER
+#ifdef SK_SUPPORT_LEGACY_DRAWFILTER
fFilter = canvas->getDrawFilter();
#else
fFilter = nullptr;
@@ -782,7 +782,7 @@
dec_canvas();
}
-#ifdef SK_SUPPORT_LEGACY_DRAWFLTER
+#ifdef SK_SUPPORT_LEGACY_DRAWFILTER
SkDrawFilter* SkCanvas::getDrawFilter() const {
return fMCRec->fFilter;
}
diff --git a/src/utils/SkNWayCanvas.cpp b/src/utils/SkNWayCanvas.cpp
index 23e9b11..e3b1e01 100644
--- a/src/utils/SkNWayCanvas.cpp
+++ b/src/utils/SkNWayCanvas.cpp
@@ -292,7 +292,7 @@
}
}
-#ifdef SK_SUPPORT_LEGACY_DRAWFLTER
+#ifdef SK_SUPPORT_LEGACY_DRAWFILTER
SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) {
Iter iter(fList);
while (iter.next()) {