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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.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/gpu/WebGLImageConversion.h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h
index cd276edb64631e176102cf5053a469039121b033..fddb53ad5d8b17011526d987cd171f23885b9006 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h
@@ -12,6 +12,7 @@
#include "third_party/khronos/GLES2/gl2.h"
#include "third_party/khronos/GLES2/gl2ext.h"
#include "third_party/khronos/GLES3/gl3.h"
+#include "wtf/Allocator.h"
#include "wtf/Optional.h"
#include "wtf/RefPtr.h"
@@ -20,7 +21,8 @@ class Image;
class IntSize;
// Helper functions for texture uploading and pixel readback.
-class PLATFORM_EXPORT WebGLImageConversion {
+class PLATFORM_EXPORT WebGLImageConversion final {
+ STATIC_ONLY(WebGLImageConversion);
public:
// Attempt to enumerate all possible native image formats to
// reduce the amount of temporary allocations during texture
@@ -113,7 +115,7 @@ public:
HtmlDomNone = 3
};
- class PLATFORM_EXPORT ImageExtractor {
+ class PLATFORM_EXPORT ImageExtractor final {
STACK_ALLOCATED();
public:
ImageExtractor(Image*, ImageHtmlDomSource, bool premultiplyAlpha, bool ignoreGammaAndColorProfile);

Powered by Google App Engine
This is Rietveld 408576698