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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.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/SharedContextRateLimiter.h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.h b/third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.h
index 934fa878d1495d2bdb7cbf4fcaf77b872ec62c8d..40c4bef8a48d99eb7dda25eb4e75be3a5c7edfda 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.h
@@ -6,7 +6,9 @@
#define SharedContextRateLimiter_h
#include "public/platform/WebGraphicsContext3D.h"
+#include "wtf/Allocator.h"
#include "wtf/Deque.h"
+#include "wtf/Noncopyable.h"
#include "wtf/OwnPtr.h"
namespace blink {
@@ -33,7 +35,9 @@ class WebGraphicsContext3DProvider;
// and later restored, the existing rate limiter must be destroyed and
// a new one created.
-class SharedContextRateLimiter {
+class SharedContextRateLimiter final {
+ USING_FAST_MALLOC(SharedContextRateLimiter);
+ WTF_MAKE_NONCOPYABLE(SharedContextRateLimiter);
public:
static PassOwnPtr<SharedContextRateLimiter> create(unsigned maxPendingTicks);
void tick();

Powered by Google App Engine
This is Rietveld 408576698