Index: src/gpu/GrSurface.cpp |
diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp |
index 678755a58f17c1a4b36b563f9b58aa2275e8c668..4ce9de51b9f8db3f3931b29ab88ad51429b4bfc5 100644 |
--- a/src/gpu/GrSurface.cpp |
+++ b/src/gpu/GrSurface.cpp |
@@ -69,7 +69,7 @@ bool GrSurface::savePixels(const char* filename) { |
// remove any previous version of this file |
remove(filename); |
- if (!SkImageEncoder::EncodeFile(filename, bm, SkImageEncoder::kPNG_Type, 100)) { |
+ if (!SkImageEncoder::EncodeFile(filename, bm, kPNG_SkEncodedFormat, 100)) { |
SkDebugf("------ failed to encode %s\n", filename); |
remove(filename); // remove any partial file |
return false; |