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

Unified Diff: Source/wtf/WTF.cpp

Issue 1183763003: Remove ArrayBufferDeallocationObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: move callback to WTF.cpp Created 5 years, 6 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
Index: Source/wtf/WTF.cpp
diff --git a/Source/wtf/WTF.cpp b/Source/wtf/WTF.cpp
index 24ca4b7514d464447bfaa740b0afba0e36383b9e..5251ce5d51098bdb54e7e9c44480db60bff72e2f 100644
--- a/Source/wtf/WTF.cpp
+++ b/Source/wtf/WTF.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "WTF.h"
+#include "wtf/ArrayBufferContents.h"
#include "wtf/Assertions.h"
#include "wtf/FastMalloc.h"
#include "wtf/Partitions.h"
@@ -42,7 +43,7 @@ extern void initializeThreading();
bool s_initialized;
bool s_shutdown;
-void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncreasingTimeFunction, TimeFunction systemTraceTimeFunction, HistogramEnumerationFunction histogramEnumerationFunction)
+void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncreasingTimeFunction, TimeFunction systemTraceTimeFunction, HistogramEnumerationFunction histogramEnumerationFunction, ArrayBufferAllocationListenerFunction arrayBufferAllocationListenerFunction)
{
// WTF, and Blink in general, cannot handle being re-initialized, even if shutdown first.
// Make that explicit here.
@@ -53,6 +54,7 @@ void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncr
setMonotonicallyIncreasingTimeFunction(monotonicallyIncreasingTimeFunction);
setSystemTraceTimeFunction(systemTraceTimeFunction);
Partitions::initialize(histogramEnumerationFunction);
+ ArrayBufferContents::setAllocationListener(arrayBufferAllocationListenerFunction);
haraken 2015/06/15 20:05:25 setAdjustAmountOfExternalAllocatedMemory ?
binji 2015/06/15 22:53:12 Done.
initializeThreading();
}

Powered by Google App Engine
This is Rietveld 408576698