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

Unified Diff: trunk/include/core/SkData.h

Issue 12919013: move SK_MMAP_SUPPORT into SkPreConfig, so we can know about its availability (Closed) Base URL: http://skia.googlecode.com/svn/
Patch Set: 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 | « trunk/gyp/core.gypi ('k') | trunk/include/core/SkMMapStream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/include/core/SkData.h
===================================================================
--- trunk/include/core/SkData.h (revision 8197)
+++ trunk/include/core/SkData.h (working copy)
@@ -89,6 +89,12 @@
static SkData* NewFromMalloc(const void* data, size_t length);
/**
+ * Create a new dataref from a pointer allocated by mmap. The Data object
+ * will handle calling munmap().
+ */
+ static SkData* NewFromMMap(const void* data, size_t length);
+
+ /**
* Create a new dataref using a subset of the data in the specified
* src dataref.
*/
« no previous file with comments | « trunk/gyp/core.gypi ('k') | trunk/include/core/SkMMapStream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698