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

Unified Diff: webkit/child/webkitplatformsupport_child_impl.cc

Issue 17106004: Add discardable memory emulation for non-android/mac platforms (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review feedback Created 7 years, 2 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: webkit/child/webkitplatformsupport_child_impl.cc
diff --git a/webkit/child/webkitplatformsupport_child_impl.cc b/webkit/child/webkitplatformsupport_child_impl.cc
index 1df9a12518946f5e4aa02fd877b45175230a1edc..00e03de5ddeca3c2cc4f7af5ff6dd38c15712159 100644
--- a/webkit/child/webkitplatformsupport_child_impl.cc
+++ b/webkit/child/webkitplatformsupport_child_impl.cc
@@ -93,8 +93,6 @@ void WebKitPlatformSupportChildImpl::didStopWorkerRunLoop(
WebKit::WebDiscardableMemory*
WebKitPlatformSupportChildImpl::allocateAndLockDiscardableMemory(size_t bytes) {
- if (!base::DiscardableMemory::Supported())
- return NULL;
scoped_ptr<WebDiscardableMemoryImpl> discardable(
new WebDiscardableMemoryImpl());
if (discardable->InitializeAndLock(bytes))
« base/memory/discardable_memory_provider.cc ('K') | « skia/ext/SkDiscardableMemory_chrome.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698