diff options
Diffstat (limited to 'tools/picture_utils.cpp')
-rw-r--r-- | tools/picture_utils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/picture_utils.cpp b/tools/picture_utils.cpp index 43ca2f07bf..84925b4dad 100644 --- a/tools/picture_utils.cpp +++ b/tools/picture_utils.cpp @@ -17,6 +17,8 @@ #include "SkStream.h" #include "SkString.h" +#include "sk_tool_utils.h" + namespace sk_tools { void force_all_opaque(const SkBitmap& bitmap) { SkASSERT(kN32_SkColorType == bitmap.colorType()); @@ -63,7 +65,7 @@ namespace sk_tools { partialPath.set(dirPath); } SkString fullPath = SkOSPath::Join(partialPath.c_str(), baseName.c_str()); - if (SkImageEncoder::EncodeFile(fullPath.c_str(), bm, SkImageEncoder::kPNG_Type, 100)) { + if (sk_tool_utils::EncodeImageToFile(fullPath.c_str(), bm, SkEncodedImageFormat::kPNG, 100)) { return true; } else { SkDebugf("Failed to write the bitmap to %s.\n", fullPath.c_str()); |