Index: src/core/SkPicture.cpp |
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp |
index 94c13950db9ae3db2858b6d2c188258c5a9221aa..4e994559e62f3318b48821ad4c6dad4479e86ffb 100644 |
--- a/src/core/SkPicture.cpp |
+++ b/src/core/SkPicture.cpp |
@@ -219,6 +219,7 @@ void SkPicture::flatten(SkWriteBuffer& buffer) const { |
} |
} |
+#ifdef SK_SUPPORT_LEGACY_PICTURE_GPUVETO |
bool SkPicture::suitableForGpuRasterization(GrContext*, const char** whyNot) const { |
if (this->numSlowPaths() > 5) { |
if (whyNot) { *whyNot = "Too many slow paths (either concave or dashed)."; } |
@@ -226,6 +227,7 @@ bool SkPicture::suitableForGpuRasterization(GrContext*, const char** whyNot) con |
} |
return true; |
} |
+#endif |
// Global setting to disable security precautions for serialization. |
void SkPicture::SetPictureIOSecurityPrecautionsEnabled_Dangerous(bool set) { |