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

Side by Side Diff: skia/ports/SkImageRef_ashmem.h

Issue 113827: Remove the remainder of the skia source code from the Chromium repo.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 | « skia/ports/SkImageDecoder_Factory.cpp ('k') | skia/ports/SkImageRef_ashmem.cpp » ('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 #ifndef SkImageRef_ashmem_DEFINED
2 #define SkImageRef_ashmem_DEFINED
3
4 #include "SkImageRef.h"
5
6 struct SkAshmemRec {
7 int fFD;
8 void* fAddr;
9 size_t fSize;
10 bool fPinned;
11 };
12
13 class SkImageRef_ashmem : public SkImageRef {
14 public:
15 SkImageRef_ashmem(SkStream*, SkBitmap::Config, int sampleSize = 1);
16 virtual ~SkImageRef_ashmem();
17
18 protected:
19 virtual bool onDecode(SkImageDecoder* codec, SkStream* stream,
20 SkBitmap* bitmap, SkBitmap::Config config,
21 SkImageDecoder::Mode mode);
22
23 virtual void* onLockPixels(SkColorTable**);
24 virtual void onUnlockPixels();
25
26 private:
27 void closeFD();
28
29 SkColorTable* fCT;
30 SkAshmemRec fRec;
31
32 typedef SkImageRef INHERITED;
33 };
34
35 #endif
OLDNEW
« no previous file with comments | « skia/ports/SkImageDecoder_Factory.cpp ('k') | skia/ports/SkImageRef_ashmem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698