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

Unified Diff: third_party/WebKit/Source/platform/image-encoders/skia/PNGImageEncoder.h

Issue 1494883003: Make platform/image-encoders 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-encoders/skia/PNGImageEncoder.h
diff --git a/third_party/WebKit/Source/platform/image-encoders/skia/PNGImageEncoder.h b/third_party/WebKit/Source/platform/image-encoders/skia/PNGImageEncoder.h
index 29b89d6a00a81dfab7358c4ec5955eda3bfee5fe..9149ab23953008de8ce2798704a1342a075ca9c3 100644
--- a/third_party/WebKit/Source/platform/image-encoders/skia/PNGImageEncoder.h
+++ b/third_party/WebKit/Source/platform/image-encoders/skia/PNGImageEncoder.h
@@ -35,6 +35,7 @@
extern "C" {
#include "png.h"
}
+#include "wtf/Allocator.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/Vector.h"
@@ -42,7 +43,9 @@ namespace blink {
struct ImageDataBuffer;
-class PLATFORM_EXPORT PNGImageEncoderState {
+class PLATFORM_EXPORT PNGImageEncoderState final {
+ USING_FAST_MALLOC(PNGImageEncoderState);
+ WTF_MAKE_NONCOPYABLE(PNGImageEncoderState);
public:
static PassOwnPtr<PNGImageEncoderState> create(const IntSize& imageSize, Vector<unsigned char>* output);
~PNGImageEncoderState();
@@ -56,6 +59,7 @@ private:
class PLATFORM_EXPORT PNGImageEncoder {
+ STATIC_ONLY(PNGImageEncoder);
public:
// Encode the input data with default compression quality. See also https://crbug.com/179289
static bool encode(const ImageDataBuffer&, Vector<unsigned char>* output);

Powered by Google App Engine
This is Rietveld 408576698