Index: src/utils/SkBitmapHasher.cpp |
diff --git a/src/utils/SkBitmapHasher.cpp b/src/utils/SkBitmapHasher.cpp |
index 32ff1cb0816f664587872fa15b1f691891ec64fb..2b84e7e60f97eacfe194591e53efe3c0e6c48b31 100644 |
--- a/src/utils/SkBitmapHasher.cpp |
+++ b/src/utils/SkBitmapHasher.cpp |
@@ -8,8 +8,7 @@ |
#include "SkBitmap.h" |
#include "SkBitmapHasher.h" |
#include "SkEndian.h" |
-#include "SkImageEncoder.h" |
- |
+#include "SkImageEncoder_argb.h" |
#include "SkMD5.h" |
/** |
@@ -38,7 +37,7 @@ static inline uint64_t first_8_bytes_as_uint64(const uint8_t *bytearray) { |
write_int32_to_buffer(SkToU32(bitmap.height()), &out); |
// add all the pixel data |
- SkAutoTDelete<SkImageEncoder> enc(CreateARGBImageEncoder()); |
+ SkAutoTDelete<SkImageEncoder> enc(SkNEW(SkARGBImageEncoder)); |
if (!enc->encodeStream(&out, bitmap, SkImageEncoder::kDefaultQuality)) { |
return false; |
} |