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
This commit is contained in:
parent
1517f93439
commit
53d9f1cfbd
@ -18,7 +18,7 @@
|
|||||||
'SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG',
|
'SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG',
|
||||||
'SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS',
|
'SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS',
|
||||||
'SK_SUPPORT_LEGACY_GRADIENT_DITHERING',
|
'SK_SUPPORT_LEGACY_GRADIENT_DITHERING',
|
||||||
'SK_SUPPORT_LEGACY_DRAWFLTER',
|
'SK_SUPPORT_LEGACY_DRAWFILTER',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -1150,12 +1150,12 @@ public:
|
|||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
#ifdef SK_INTERNAL
|
#ifdef SK_INTERNAL
|
||||||
#ifndef SK_SUPPORT_LEGACY_DRAWFLTER
|
#ifndef SK_SUPPORT_LEGACY_DRAWFILTER
|
||||||
#define SK_SUPPORT_LEGACY_DRAWFLTER
|
#define SK_SUPPORT_LEGACY_DRAWFILTER
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SK_SUPPORT_LEGACY_DRAWFLTER
|
#ifdef SK_SUPPORT_LEGACY_DRAWFILTER
|
||||||
/** Get the current filter object. The filter's reference count is not
|
/** Get the current filter object. The filter's reference count is not
|
||||||
affected. The filter is saved/restored, just like the matrix and clip.
|
affected. The filter is saved/restored, just like the matrix and clip.
|
||||||
@return the canvas' filter (or NULL).
|
@return the canvas' filter (or NULL).
|
||||||
|
@ -24,7 +24,7 @@ public:
|
|||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// These are forwarded to the N canvases we're referencing
|
// These are forwarded to the N canvases we're referencing
|
||||||
|
|
||||||
#ifdef SK_SUPPORT_LEGACY_DRAWFLTER
|
#ifdef SK_SUPPORT_LEGACY_DRAWFILTER
|
||||||
SkDrawFilter* setDrawFilter(SkDrawFilter*) override;
|
SkDrawFilter* setDrawFilter(SkDrawFilter*) override;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -444,7 +444,7 @@ public:
|
|||||||
bool skipLayerForImageFilter = false,
|
bool skipLayerForImageFilter = false,
|
||||||
const SkRect* rawBounds = nullptr) : fOrigPaint(paint) {
|
const SkRect* rawBounds = nullptr) : fOrigPaint(paint) {
|
||||||
fCanvas = canvas;
|
fCanvas = canvas;
|
||||||
#ifdef SK_SUPPORT_LEGACY_DRAWFLTER
|
#ifdef SK_SUPPORT_LEGACY_DRAWFILTER
|
||||||
fFilter = canvas->getDrawFilter();
|
fFilter = canvas->getDrawFilter();
|
||||||
#else
|
#else
|
||||||
fFilter = nullptr;
|
fFilter = nullptr;
|
||||||
@ -782,7 +782,7 @@ SkCanvas::~SkCanvas() {
|
|||||||
dec_canvas();
|
dec_canvas();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SK_SUPPORT_LEGACY_DRAWFLTER
|
#ifdef SK_SUPPORT_LEGACY_DRAWFILTER
|
||||||
SkDrawFilter* SkCanvas::getDrawFilter() const {
|
SkDrawFilter* SkCanvas::getDrawFilter() const {
|
||||||
return fMCRec->fFilter;
|
return fMCRec->fFilter;
|
||||||
}
|
}
|
||||||
|
@ -292,7 +292,7 @@ void SkNWayCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4]
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SK_SUPPORT_LEGACY_DRAWFLTER
|
#ifdef SK_SUPPORT_LEGACY_DRAWFILTER
|
||||||
SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) {
|
SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) {
|
||||||
Iter iter(fList);
|
Iter iter(fList);
|
||||||
while (iter.next()) {
|
while (iter.next()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user