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

Unified Diff: Source/web/painting/PaintAggregator.h

Issue 1328773002: Make classes and structures in web fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 months 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
« no previous file with comments | « Source/web/WorkerGlobalScopeProxyProviderImpl.h ('k') | Source/web/tests/FakeWebPlugin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/painting/PaintAggregator.h
diff --git a/Source/web/painting/PaintAggregator.h b/Source/web/painting/PaintAggregator.h
index ab0c3cbe34abbb0106392bd0c47ff77cb1b8c173..28c2cab888283729d90be07be9f0a3da6ecfa817 100644
--- a/Source/web/painting/PaintAggregator.h
+++ b/Source/web/painting/PaintAggregator.h
@@ -33,6 +33,7 @@
#include "platform/geometry/IntPoint.h"
#include "platform/geometry/IntRect.h"
+#include "wtf/Allocator.h"
#include "wtf/Vector.h"
namespace blink {
@@ -40,6 +41,7 @@ namespace blink {
// This class is responsible for aggregating multiple invalidation and scroll
// commands to produce a scroll and repaint sequence.
class PaintAggregator {
+ STACK_ALLOCATED();
public:
// This structure describes an aggregation of invalidateRect and scrollRect
// calls. If |scrollRect| is non-empty, then that rect should be scrolled
@@ -49,6 +51,7 @@ public:
// |scrollDelta| can only specify scrolling in one direction (i.e., the x
// and y members cannot both be non-zero).
struct PendingUpdate {
+ STACK_ALLOCATED();
PendingUpdate();
~PendingUpdate();
« no previous file with comments | « Source/web/WorkerGlobalScopeProxyProviderImpl.h ('k') | Source/web/tests/FakeWebPlugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698