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

Unified Diff: third_party/WebKit/Source/web/WebKit.cpp

Issue 1776943002: Register ArrayBufferContents' adjustAmountOfMemory in V8Initializer::initialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: third_party/WebKit/Source/web/WebKit.cpp
diff --git a/third_party/WebKit/Source/web/WebKit.cpp b/third_party/WebKit/Source/web/WebKit.cpp
index 4921ba561e3f7e7e50fefc688d7ef15a01a11409..427fd8c3ec4af7677177b790cdca455deb5412f1 100644
--- a/third_party/WebKit/Source/web/WebKit.cpp
+++ b/third_party/WebKit/Source/web/WebKit.cpp
@@ -141,18 +141,13 @@ static void callOnMainThreadFunction(WTF::MainThreadFunction function, void* con
Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(function, AllowCrossThreadAccess(context)));
}
-static void adjustAmountOfExternalAllocatedMemory(int size)
-{
- v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(size);
-}
-
void initializeWithoutV8(Platform* platform)
{
ASSERT(!s_webKitInitialized);
s_webKitInitialized = true;
WTF::Partitions::initialize(maxObservedSizeFunction);
- WTF::initialize(adjustAmountOfExternalAllocatedMemory);
+ WTF::initialize();
WTF::initializeMainThread(callOnMainThreadFunction);
ASSERT(platform);
« no previous file with comments | « third_party/WebKit/Source/platform/testing/RunAllTests.cpp ('k') | third_party/WebKit/Source/wtf/ArrayBufferContents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698