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

Unified Diff: Source/wtf/WTF.cpp

Issue 1183763003: Remove ArrayBufferDeallocationObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: s_ prefix 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
« no previous file with comments | « Source/wtf/WTF.h ('k') | Source/wtf/testing/RunAllTests.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/WTF.cpp
diff --git a/Source/wtf/WTF.cpp b/Source/wtf/WTF.cpp
index 24ca4b7514d464447bfaa740b0afba0e36383b9e..8565c0111f02cbc93e6a3bc22cbb06cf19ab018a 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, AdjustAmountOfExternalAllocatedMemoryFunction adjustAmountOfExternalAllocatedMemoryFunction)
{
// 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::setAdjustAmoutOfExternalAllocatedMemoryFunction(adjustAmountOfExternalAllocatedMemoryFunction);
initializeThreading();
}
« no previous file with comments | « Source/wtf/WTF.h ('k') | Source/wtf/testing/RunAllTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698