| Index: skia/ext/SkDiscardableMemory_chrome.cc
|
| diff --git a/skia/ext/SkDiscardableMemory_chrome.cc b/skia/ext/SkDiscardableMemory_chrome.cc
|
| index 50e7f2e7ca0f893de1c377af24b69b3eb03092bc..5bb6928d13ceb18a1ffb5e1f6bea8020179d1f8b 100644
|
| --- a/skia/ext/SkDiscardableMemory_chrome.cc
|
| +++ b/skia/ext/SkDiscardableMemory_chrome.cc
|
| @@ -4,6 +4,9 @@
|
|
|
| #include "SkDiscardableMemory_chrome.h"
|
|
|
| +#include "base/memory/discardable_memory.h"
|
| +#include "base/memory/discardable_memory_allocator.h"
|
| +
|
| SkDiscardableMemoryChrome::~SkDiscardableMemoryChrome() {}
|
|
|
| bool SkDiscardableMemoryChrome::lock() {
|
| @@ -25,5 +28,6 @@ SkDiscardableMemoryChrome::SkDiscardableMemoryChrome(
|
|
|
| SkDiscardableMemory* SkDiscardableMemory::Create(size_t bytes) {
|
| return new SkDiscardableMemoryChrome(
|
| - base::DiscardableMemory::CreateLockedMemory(bytes));
|
| + base::DiscardableMemoryAllocator::GetInstance()
|
| + ->AllocateLockedDiscardableMemory(bytes));
|
| }
|
|
|