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

Side by Side Diff: trunk/include/core/SkMMapStream.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « trunk/include/core/SkData.h ('k') | trunk/include/core/SkPreConfig.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 /*
3 * Copyright 2008 The Android Open Source Project
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9
10 #ifndef SkMMapStream_DEFINED
11 #define SkMMapStream_DEFINED
12
13 #include "SkStream.h"
14
15 class SkMMAPStream : public SkMemoryStream {
16 public:
17 SkMMAPStream(const char filename[]);
18 virtual ~SkMMAPStream();
19
20 virtual void setMemory(const void* data, size_t length, bool);
21 private:
22 void* fAddr;
23 size_t fSize;
24
25 void closeMMap();
26
27 typedef SkMemoryStream INHERITED;
28 };
29
30 #endif
OLDNEW
« no previous file with comments | « trunk/include/core/SkData.h ('k') | trunk/include/core/SkPreConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698