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

Unified Diff: src/core/SkImagesSupport.h

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 | « include/gpu/GrSurface.h ('k') | src/gpu/GrAADistanceFieldPathRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkImagesSupport.h
diff --git a/src/core/SkImagesSupport.h b/src/core/SkImagesSupport.h
new file mode 100644
index 0000000000000000000000000000000000000000..a3e32f8a156ceaedb352673526a138abff1cae14
--- /dev/null
+++ b/src/core/SkImagesSupport.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkImagesSupport_DEFINED
+#define SkImagesSupport_DEFINED
+
+// This file contains functions that will use images -library if it is
+// present. If not, the functions will fail.
+
+#if SK_SUPPORT_GPU && defined(SK_DEVELOPER)
+class GrSurface;
+
+/** Save a GrSurface as PNG file.
+ * Returns false if save failed. */
+bool SkSaveGrSurfacePixelsAsPNG(GrSurface* surface, const char* filename);
+#endif
+
+#endif
« no previous file with comments | « include/gpu/GrSurface.h ('k') | src/gpu/GrAADistanceFieldPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698