isABitmap is deprecated, use isAImage
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2748
Change-Id: I7006a3231ff0e9e39b187deae550364bc97f49d6
Reviewed-on: https://skia-review.googlesource.com/2748
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index f7ef836..efd9aa0 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -229,6 +229,7 @@
*/
size_t contextSize(const ContextRec&) const;
+#ifdef SK_SUPPORT_LEGACY_SHADER_ISABITMAP
/**
* Returns true if this shader is just a bitmap, and if not null, returns the bitmap,
* localMatrix, and tilemodes. If this is not a bitmap, returns false and ignores the
@@ -241,6 +242,7 @@
bool isABitmap() const {
return this->isABitmap(nullptr, nullptr, nullptr);
}
+#endif
/**
* Iff this shader is backed by a single SkImage, return its ptr (the caller must ref this
@@ -522,9 +524,11 @@
return false;
}
+#ifdef SK_SUPPORT_LEGACY_SHADER_ISABITMAP
virtual bool onIsABitmap(SkBitmap*, SkMatrix*, TileMode[2]) const {
return false;
}
+#endif
virtual SkImage* onIsAImage(SkMatrix*, TileMode[2]) const {
return nullptr;