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

Unified Diff: src/utils/SkBitmapHasher.cpp

Issue 670453002: Remove image decoder and encoder autoregistration (Closed) Base URL: https://skia.googlesource.com/skia.git@separate-image-decoder-01-skpicture
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/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;
}

Powered by Google App Engine
This is Rietveld 408576698