blob: 6ac9b822c683333844e32ef4b4bee476837ae21e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/*
* 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));
}
|