Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: src/ports/SkImagesSupport_noimages.cpp

Issue 665913002: Move code to dump GrSurface as a png to helper files (Closed) Base URL: https://skia.googlesource.com/skia.git@separate-image-encoder-01-skimage
Patch Set: address review comments Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ports/SkImagesSupport_default.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/ports/SkImagesSupport_default.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698