Index: src/ports/SkPurgeableMemoryBlock_none.cpp |
diff --git a/src/ports/SkPurgeableMemoryBlock_none.cpp b/src/ports/SkPurgeableMemoryBlock_none.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5fdc01cf613750004b5c61614c8aeee52fa16443 |
--- /dev/null |
+++ b/src/ports/SkPurgeableMemoryBlock_none.cpp |
@@ -0,0 +1,41 @@ |
+/* |
+ * 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" |
+ |
+bool SkPurgeableMemoryBlock::IsSupported() { |
+ return false; |
+} |
+ |
+#ifdef SK_DEBUG |
+bool SkPurgeableMemoryBlock::PlatformSupportsPurgingAllUnpinnedBlocks() { |
+ return false; |
+} |
+ |
+bool SkPurgeableMemoryBlock::PurgeAllUnpinnedBlocks() { |
+ return false; |
+} |
+ |
+bool SkPurgeableMemoryBlock::purge() { |
+ return false; |
+} |
+#endif |
+ |
+SkPurgeableMemoryBlock::SkPurgeableMemoryBlock(size_t size) { |
+ SkASSERT(false); |
+} |
+ |
+SkPurgeableMemoryBlock::~SkPurgeableMemoryBlock() { |
+} |
+ |
+void* SkPurgeableMemoryBlock::pin(SkPurgeableMemoryBlock::PinResult*) { |
+ return NULL; |
+} |
+ |
+void SkPurgeableMemoryBlock::unpin() { |
+} |
+ |