skia2/src/lazy/SkPurgeableMemoryBlock_common.cpp
skia.committer@gmail.com ac2c82c852 Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@8177 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-16 07:01:18 +00:00

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));
}