Commit f2aadee8 authored by reveman@chromium.org's avatar reveman@chromium.org

webkit: Avoid use of discardable memory unless supported natively.

BUG=237681

Review URL: https://codereview.chromium.org/60273004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233187 0039d316-1c4b-4281-b951-d872f2087c98
parent cc622f9e
......@@ -93,6 +93,8 @@ void WebKitPlatformSupportChildImpl::didStopWorkerRunLoop(
WebKit::WebDiscardableMemory*
WebKitPlatformSupportChildImpl::allocateAndLockDiscardableMemory(size_t bytes) {
if (!base::DiscardableMemory::SupportedNatively())
return NULL;
return WebDiscardableMemoryImpl::CreateLockedMemory(bytes).release();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment