59204b4813
Review URL: http://codereview.appspot.com/5467058 git-svn-id: http://skia.googlecode.com/svn/trunk@2847 2bbb7eff-a529-9590-31e7-b0007b416f81
31 lines
568 B
C++
31 lines
568 B
C++
|
|
/*
|
|
* Copyright 2008 The Android Open Source Project
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
|
|
#ifndef SkMMapStream_DEFINED
|
|
#define SkMMapStream_DEFINED
|
|
|
|
#include "SkStream.h"
|
|
|
|
class SkMMAPStream : public SkMemoryStream {
|
|
public:
|
|
SkMMAPStream(const char filename[]);
|
|
virtual ~SkMMAPStream();
|
|
|
|
virtual void setMemory(const void* data, size_t length, bool);
|
|
private:
|
|
void* fAddr;
|
|
size_t fSize;
|
|
|
|
void closeMMap();
|
|
|
|
typedef SkMemoryStream INHERITED;
|
|
};
|
|
|
|
#endif
|