blob: a549c46e2647b165edc21bbc766e55ee5e612c90 [file] [log] [blame]
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkPurgeableMemoryBlock.h"
SkPurgeableMemoryBlock* SkPurgeableMemoryBlock::Create(size_t size) {
SkASSERT(IsSupported());
if (!IsSupported()) {
return NULL;
}
return SkNEW_ARGS(SkPurgeableMemoryBlock, (size));
}