hide bitmap virtuals

SK_SUPPORT_LEGACY_ONDRAWBITMAP_VIRTUALS flag to stage this

Change-Id: I32c1bc954446b44cbe656f07cf6f2ad70668b723
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/277736
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
This commit is contained in:
Mike Reed 2020-03-18 14:16:27 -04:00 committed by Skia Commit-Bot
parent afa83bc20b
commit 430c5a1081
2 changed files with 4 additions and 2 deletions

View File

@ -13,6 +13,7 @@ flutter_defines = [
"SK_DISABLE_AAA",
# API staging
"SK_SUPPORT_LEGACY_ONDRAWBITMAP_VIRTUALS",
"SK_SUPPORT_LEGACY_DRAWVERTS_VIRTUAL",
# Flutter doesn't deserialize anything.

View File

@ -2535,14 +2535,15 @@ protected:
virtual void onDrawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst,
const SkPaint* paint);
// REMOVE ME - SkCanvasVirtualEnforcer no longer requires the on DrawBitmapX functions
// to be implemented and these will be removed from SkCanvas at a later date.
#ifdef SK_SUPPORT_LEGACY_ONDRAWBITMAP_VIRTUALS
// these are no longer called, so clients should stop overriding them
virtual void onDrawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint*) {}
virtual void onDrawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkPaint*,
SkCanvas::SrcRectConstraint) {}
virtual void onDrawBitmapNine(const SkBitmap&, const SkIRect&, const SkRect&, const SkPaint*) {}
virtual void onDrawBitmapLattice(const SkBitmap&, const SkCanvas::Lattice&, const SkRect&,
const SkPaint*) {}
#endif
virtual void onDrawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect rect[],
const SkColor colors[], int count, SkBlendMode mode,