add guard for extra includes
authorMike Reed <reed@google.com>
Wed, 17 May 2017 10:16:58 +0000 (06:16 -0400)
committerMike Reed <reed@google.com>
Wed, 17 May 2017 10:22:08 +0000 (10:22 +0000)
Bug: skia:
Change-Id: Id500cb6ac6c2f4a925135a8e83ed4f2a07b73661
Reviewed-on: https://skia-review.googlesource.com/17162
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>

include/core/SkPictureRecorder.h
public.bzl

index 09839cb..a6efd2b 100644 (file)
 #include "SkPicture.h"
 #include "SkRefCnt.h"
 
+#ifdef SK_SUPPORT_PICTURERECORDER_INCLUDES
+// these are not strictly necessary, but can't remove them until we update clients
+#include "SkRSXform.h"
+#include "SkImage.h"
+#endif
+
 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
 namespace android {
     class Picture;
index 1813af0..9dfd518 100644 (file)
@@ -661,6 +661,7 @@ DEFINES_ALL = [
     # Staging flags for API changes
     # Temporarily Disable analytic AA for Google3
     "SK_NO_ANALYTIC_AA",
+    "SK_SUPPORT_PICTURERECORDER_INCLUDES",
 ]
 
 ################################################################################