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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h

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/ImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
index eea37216069119c5290f1214cdcbc4869be27544..36075eea0959d6be46ffdc7a321fee3eca5e043f 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
@@ -50,7 +50,9 @@ typedef Vector<char> ColorProfile;
namespace blink {
// ImagePlanes can be used to decode color components into provided buffers instead of using an ImageFrame.
-class PLATFORM_EXPORT ImagePlanes {
+class PLATFORM_EXPORT ImagePlanes final {
+ USING_FAST_MALLOC(ImagePlanes);
+ WTF_MAKE_NONCOPYABLE(ImagePlanes);
public:
ImagePlanes();
ImagePlanes(void* planes[3], size_t rowBytes[3]);
@@ -212,7 +214,9 @@ public:
return !memcmp(&profileData[12], "mntr", 4) || !memcmp(&profileData[12], "scnr", 4);
}
- class OutputDeviceProfile {
+ class OutputDeviceProfile final {
+ USING_FAST_MALLOC(OutputDeviceProfile);
+ WTF_MAKE_NONCOPYABLE(OutputDeviceProfile);
public:
OutputDeviceProfile()
: m_outputDeviceProfile(0)

Powered by Google App Engine
This is Rietveld 408576698