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

Unified Diff: src/gpu/GrSurfacePriv.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: 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
Index: src/gpu/GrSurfacePriv.h
diff --git a/src/gpu/GrSurfacePriv.h b/src/gpu/GrSurfacePriv.h
index 3203671fadc4b806a6f9b639f87b46354152519a..ed34fb789d7af3120e115118505aad18e997a43c 100644
--- a/src/gpu/GrSurfacePriv.h
+++ b/src/gpu/GrSurfacePriv.h
@@ -9,6 +9,7 @@
#define GrSurfacePriv_DEFINED
#include "GrSurface.h"
+#include "../images/SkImagesSupport.h"
jvanverth1 2014/10/20 14:32:21 I'm not sure this belongs in here, as there aren't
scroggo 2014/10/20 15:27:39 Some more comments: We do not fully qualify path
/** Class that adds methods to GrSurface that are only intended for use internal to Skia.
This class is purely a privileged window into GrSurface. It should never have additional data
@@ -30,12 +31,6 @@ public:
*/
bool isSameAs(const GrSurface* other) const { return fSurface->isSameAs(other); }
- /**
- * Write the contents of the surface to a PNG. Returns true if successful.
- * @param filename Full path to desired file
- */
- bool savePixels(const char* filename) { return fSurface->savePixels(filename); }
-
bool hasPendingRead() const { return fSurface->hasPendingRead(); }
bool hasPendingWrite() const { return fSurface->hasPendingWrite(); }
bool hasPendingIO() const { return fSurface->hasPendingIO(); }

Powered by Google App Engine
This is Rietveld 408576698