Chromium Code Reviews| Index: webkit/child/webkitplatformsupport_child_impl.cc |
| diff --git a/webkit/child/webkitplatformsupport_child_impl.cc b/webkit/child/webkitplatformsupport_child_impl.cc |
| index 3bb2b1954cb9d14d475b57ceec74e4e1dd31244b..8dec58df4ed60d13477f0e7fe50f5f4c7e9ccbc7 100644 |
| --- a/webkit/child/webkitplatformsupport_child_impl.cc |
| +++ b/webkit/child/webkitplatformsupport_child_impl.cc |
| @@ -93,7 +93,8 @@ void WebKitPlatformSupportChildImpl::didStopWorkerRunLoop( |
| blink::WebDiscardableMemory* |
| WebKitPlatformSupportChildImpl::allocateAndLockDiscardableMemory(size_t bytes) { |
| - if (!base::DiscardableMemory::SupportedNatively()) |
| + base::DiscardableMemoryType type = base::DiscardableMemory::GetType(); |
|
Philippe
2013/12/18 09:07:47
Just realized that there was this SupportedNativel
reveman
2013/12/18 19:44:25
Existing code in blink that uses discardable memor
|
| + if (type == base::DISCARDABLE_MEMORY_TYPE_EMULATED) |
| return NULL; |
| return WebDiscardableMemoryImpl::CreateLockedMemory(bytes).release(); |
| } |