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

Unified Diff: Source/web/WebKit.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/platform/testing/RunAllTests.cpp ('k') | Source/wtf/ArrayBuffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebKit.cpp
diff --git a/Source/web/WebKit.cpp b/Source/web/WebKit.cpp
index f916b41bf2f12e6843812e49a8515dbfeeeb79fc..ec818aa0e91449ab10a54db40ed1e14194962057 100644
--- a/Source/web/WebKit.cpp
+++ b/Source/web/WebKit.cpp
@@ -163,6 +163,11 @@ static void callOnMainThreadFunction(WTF::MainThreadFunction function, void* con
Platform::current()->mainThread()->postTask(FROM_HERE, new MainThreadTaskRunner(function, context));
}
+static void adjustAmountOfExternalAllocatedMemory(int size)
+{
+ v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(size);
+}
+
void initializeWithoutV8(Platform* platform)
{
ASSERT(!s_webKitInitialized);
@@ -172,7 +177,7 @@ void initializeWithoutV8(Platform* platform)
Platform::initialize(platform);
WTF::setRandomSource(cryptographicallyRandomValues);
- WTF::initialize(currentTimeFunction, monotonicallyIncreasingTimeFunction, systemTraceTimeFunction, histogramEnumerationFunction);
+ WTF::initialize(currentTimeFunction, monotonicallyIncreasingTimeFunction, systemTraceTimeFunction, histogramEnumerationFunction, adjustAmountOfExternalAllocatedMemory);
WTF::initializeMainThread(callOnMainThreadFunction);
Heap::init();
« no previous file with comments | « Source/platform/testing/RunAllTests.cpp ('k') | Source/wtf/ArrayBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698