ac2c82c852
git-svn-id: http://skia.googlecode.com/svn/trunk@8177 2bbb7eff-a529-9590-31e7-b0007b416f81
17 lines
391 B
C++
17 lines
391 B
C++
/*
|
|
* 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));
|
|
}
|