#include "skia/ext/SkDiscardableMemory_chrome.h"
#include <stddef.h>
#include <utility>
#include "base/functional/callback_helpers.h"
#include "base/memory/discardable_memory.h"
#include "base/memory/discardable_memory_allocator.h"
SkDiscardableMemoryChrome::~SkDiscardableMemoryChrome() = default;
bool SkDiscardableMemoryChrome::lock() { … }
void* SkDiscardableMemoryChrome::data() { … }
void SkDiscardableMemoryChrome::unlock() { … }
SkDiscardableMemoryChrome::SkDiscardableMemoryChrome(
std::unique_ptr<base::DiscardableMemory> memory)
: … { … }
base::trace_event::MemoryAllocatorDump*
SkDiscardableMemoryChrome::CreateMemoryAllocatorDump(
const char* name,
base::trace_event::ProcessMemoryDump* pmd) const { … }
SkDiscardableMemory* SkDiscardableMemory::Create(size_t bytes) { … }