mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
32 lines
589 B
C
32 lines
589 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:
|
||
|
int fFildes;
|
||
|
void* fAddr;
|
||
|
size_t fSize;
|
||
|
|
||
|
void closeMMap();
|
||
|
|
||
|
typedef SkMemoryStream INHERITED;
|
||
|
};
|
||
|
|
||
|
#endif
|