Index: src/lazy/SkPurgeableMemoryBlock_common.cpp |
diff --git a/src/lazy/SkPurgeableMemoryBlock_common.cpp b/src/lazy/SkPurgeableMemoryBlock_common.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6ac9b822c683333844e32ef4b4bee476837ae21e |
--- /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)); |
+} |
+ |