Index: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp |
diff --git a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp |
index 01b8f3f880c53b73c69c7ec9112396a946a50381..1704bc29a369e42928497664f45dfbc8681c827c 100644 |
--- a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp |
+++ b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp |
@@ -82,12 +82,14 @@ const unsigned scaleDenominator = 8; |
namespace blink { |
struct decoder_error_mgr { |
+ DISALLOW_NEW(); |
struct jpeg_error_mgr pub; // "public" fields for IJG library |
int num_corrupt_warnings; // Counts corrupt warning messages |
jmp_buf setjmp_buffer; // For handling catastropic errors |
}; |
struct decoder_source_mgr { |
+ DISALLOW_NEW(); |
struct jpeg_source_mgr pub; // "public" fields for IJG library |
JPEGImageReader* reader; |
}; |
@@ -289,8 +291,9 @@ static yuv_subsampling yuvSubsampling(const jpeg_decompress_struct& info) |
return YUV_UNKNOWN; |
} |
-class JPEGImageReader { |
+class JPEGImageReader final { |
USING_FAST_MALLOC(JPEGImageReader); |
+ WTF_MAKE_NONCOPYABLE(JPEGImageReader); |
public: |
JPEGImageReader(JPEGImageDecoder* decoder) |
: m_decoder(decoder) |