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

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, 1 month 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
« no previous file with comments | « src/ports/SkImageDecoder_WIC.cpp ('k') | tests/ARGBImageEncoderTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkBitmapHasher.cpp
diff --git a/src/utils/SkBitmapHasher.cpp b/src/utils/SkBitmapHasher.cpp
index 32ff1cb0816f664587872fa15b1f691891ec64fb..828b188e0598cd406004bedfadf408450a2b159c 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(SkImageEncoder_argb));
if (!enc->encodeStream(&out, bitmap, SkImageEncoder::kDefaultQuality)) {
return false;
}
« no previous file with comments | « src/ports/SkImageDecoder_WIC.cpp ('k') | tests/ARGBImageEncoderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698