#ifndef SKIA_EXT_SK_DISCARDABLE_MEMORY_CHROME_H_
#define SKIA_EXT_SK_DISCARDABLE_MEMORY_CHROME_H_
#include "base/memory/discardable_memory.h"
#include "base/memory/scoped_ptr.h"
#include "third_party/skia/src/core/SkDiscardableMemory.h"
class SK_API SkDiscardableMemoryChrome : public SkDiscardableMemory {
public:
virtual ~SkDiscardableMemoryChrome();
virtual bool lock() OVERRIDE;
virtual void* data() OVERRIDE;
virtual void unlock() OVERRIDE;
private:
friend class SkDiscardableMemory;
SkDiscardableMemoryChrome(scoped_ptr<base::DiscardableMemory> memory);
scoped_ptr<base::DiscardableMemory> discardable_;
};
#endif