Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Unified Diff: src/lazy/SkPurgeableMemoryBlock_common.cpp

Issue 12645006: Create a platform-dependent object for accessing purgeable memory. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Build mac version on iOS as well. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/lazy/SkPurgeableMemoryBlock.h ('k') | src/ports/SkPurgeableMemoryBlock_android.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
+}
+
« no previous file with comments | « src/lazy/SkPurgeableMemoryBlock.h ('k') | src/ports/SkPurgeableMemoryBlock_android.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698