aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/lazy/SkPurgeableMemoryBlock_common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lazy/SkPurgeableMemoryBlock_common.cpp')
-rw-r--r--src/lazy/SkPurgeableMemoryBlock_common.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lazy/SkPurgeableMemoryBlock_common.cpp b/src/lazy/SkPurgeableMemoryBlock_common.cpp
new file mode 100644
index 0000000000..6ac9b822c6
--- /dev/null
+++ b/src/lazy/SkPurgeableMemoryBlock_common.cpp
@@ -0,0 +1,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));
+}
+