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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageDecodingStore.h

Issue 1497683002: Make platform/graphics 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/graphics/ImageDecodingStore.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageDecodingStore.h b/third_party/WebKit/Source/platform/graphics/ImageDecodingStore.h
index c3586233f2c1b77822053786a26697ccd270741d..0ff40b364803f1d4446a25fd76b5f8db77f8f886 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageDecodingStore.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageDecodingStore.h
@@ -61,7 +61,9 @@ class ImageFrameGenerator;
//
// All public methods can be used on any thread.
-class PLATFORM_EXPORT ImageDecodingStore {
+class PLATFORM_EXPORT ImageDecodingStore final {
+ USING_FAST_MALLOC(ImageDecodingStore);
+ WTF_MAKE_NONCOPYABLE(ImageDecodingStore);
public:
static PassOwnPtr<ImageDecodingStore> create() { return adoptPtr(new ImageDecodingStore); }
~ImageDecodingStore();
@@ -92,6 +94,8 @@ private:
// Base class for all cache entries.
class CacheEntry : public DoublyLinkedListNode<CacheEntry> {
+ USING_FAST_MALLOC(CacheEntry);
+ WTF_MAKE_NONCOPYABLE(CacheEntry);
friend class WTF::DoublyLinkedListNode<CacheEntry>;
public:
enum CacheType {
@@ -213,6 +217,11 @@ private:
// This mutex also protects calls to underlying skBitmap's
// lockPixels()/unlockPixels() as they are not threadsafe.
Mutex m_mutex;
+
+#if COMPILER(MSVC)
+ friend struct ::WTF::OwnedPtrDeleter<CacheEntry>;
+ friend struct ::WTF::OwnedPtrDeleter<DecoderCacheEntry>;
+#endif
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698