Index: src/codec/SkJpegCodec.h |
diff --git a/src/codec/SkJpegCodec.h b/src/codec/SkJpegCodec.h |
index ed94b613f9fcbd2374cc6b171738d45b01fac6b0..8e2db81b73a1ff8f1a6b6a6407721d44ce089313 100644 |
--- a/src/codec/SkJpegCodec.h |
+++ b/src/codec/SkJpegCodec.h |
@@ -13,6 +13,7 @@ |
#include "SkJpegDecoderMgr.h" |
#include "SkJpegUtility_codec.h" |
#include "SkStream.h" |
+#include "SkTemplates.h" |
extern "C" { |
#include "jpeglib.h" |
@@ -111,7 +112,7 @@ private: |
const int fReadyState; |
// scanline decoding |
- SkAutoMalloc fStorage; // Only used if sampling is needed |
+ SkAutoTMalloc<uint8_t> fStorage; // Only used if sampling is needed |
uint8_t* fSrcRow; // Only used if sampling is needed |
SkAutoTDelete<SkSwizzler> fSwizzler; |