From 00f4769e34d8b2ee5a31c607f339eac37a051fd9 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Thu, 28 Jan 2021 18:15:15 -0500 Subject: [PATCH] Condtionalize flags (so flutter can add them) Change-Id: I6e6916a433341065516280f18a7b2779139b782f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/361716 Reviewed-by: Mike Reed Commit-Queue: Mike Reed --- include/core/SkCanvas.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index a1b044517b..16fd6c4c68 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -33,12 +33,17 @@ #include #include -// Working on allow this to be undefined +#ifndef SK_SUPPORT_LEGACY_GETTOTALMATRIX #define SK_SUPPORT_LEGACY_GETTOTALMATRIX +#endif +#ifndef SK_SUPPORT_LEGACY_DRAWBITMAP #define SK_SUPPORT_LEGACY_DRAWBITMAP +#endif +#ifndef SK_SUPPORT_LEGACY_DRAWIMAGE_NOSAMPLING #define SK_SUPPORT_LEGACY_DRAWIMAGE_NOSAMPLING +#endif class GrBackendRenderTarget; class GrRecordingContext;