Index: tests/SkpSkGrTest.cpp |
diff --git a/tests/SkpSkGrTest.cpp b/tests/SkpSkGrTest.cpp |
index c2f1a798d6e5cd5f337839b81be4288dc1a9e5fa..51f6e3a051759de99f6507fbb058e2c6c3c536cc 100644 |
--- a/tests/SkpSkGrTest.cpp |
+++ b/tests/SkpSkGrTest.cpp |
@@ -1,3 +1,5 @@ |
+#include "SkTypes.h" |
+ |
#if !SK_SUPPORT_GPU |
#error "GPU support required" |
#endif |
@@ -367,7 +369,7 @@ static void drawPict(SkPicture* pic, SkCanvas* canvas, int scale) { |
static void writePict(const SkBitmap& bitmap, const char* outDir, const char* pngName) { |
SkString outFile = make_filepath(0, outDir, pngName); |
if (!SkImageEncoder::EncodeFile(outFile.c_str(), bitmap, |
- SkImageEncoder::kPNG_Type, 100)) { |
+ kPNG_SkEncodedFormat, 100)) { |
SkDebugf("unable to encode gr %s (width=%d height=%d)br \n", pngName, |
bitmap.width(), bitmap.height()); |
} |