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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp

Issue 1493633004: Make platform/image-decoders to use USING_FAST_MALLOC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: 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)

Powered by Google App Engine
This is Rietveld 408576698