Index: src/ports/SkImagesSupport_noimages.cpp |
diff --git a/src/ports/SkImagesSupport_noimages.cpp b/src/ports/SkImagesSupport_noimages.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..edc99c14f2c82a86b2827d2aad57347419fe78ea |
--- /dev/null |
+++ b/src/ports/SkImagesSupport_noimages.cpp |
@@ -0,0 +1,12 @@ |
+#include "SkImagesSupport.h" |
+ |
+// This file should be compiled for embedders that do not compile the images sublibrary |
+// as part of Skia library. |
+#if SK_SUPPORT_GPU && defined(SK_DEVELOPER) |
+ |
+bool SkSaveGrSurfacePrivPixelsAsPNG(GrSurfacePriv*, const char*) { |
+ SK_CRASH(); |
+ return false; |
+} |
+ |
+#endif |