reed 2015-12-23 19:53:29 -08:00 committed by Commit bot
parent 08e7047e68
commit 0b70f45be8
2 changed files with 0 additions and 8 deletions

View File

@ -2228,10 +2228,6 @@ void SkCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) {
}
bool SkCanvas::canDrawBitmapAsSprite(SkScalar x, SkScalar y, int w, int h, const SkPaint& paint) {
#ifdef SK_SUPPORT_LEGACY_LAYER_BITMAP_IMAGEFILTERS
return false;
#endif
if (!paint.getImageFilter()) {
return false;
}

View File

@ -20,11 +20,7 @@ bool SkOffsetImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& source,
SkIPoint* offset) const {
SkBitmap src = source;
SkIPoint srcOffset = SkIPoint::Make(0, 0);
#ifdef SK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION
if (false) {
#else
if (!cropRectIsSet()) {
#endif
if (!this->filterInput(0, proxy, source, ctx, &src, &srcOffset)) {
return false;
}