Chromium Code Reviews| 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(); |
| } |