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

Side by Side Diff: include/core/SkImage.h

Issue 14328002: Adding SK_API to export SkImage and SkSurface API classes (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 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 | « no previous file | include/core/SkSurface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkImage_DEFINED 8 #ifndef SkImage_DEFINED
9 #define SkImage_DEFINED 9 #define SkImage_DEFINED
10 10
(...skipping 15 matching lines...) Expand all
26 /** 26 /**
27 * SkImage is an abstraction for drawing a rectagle of pixels, though the 27 * SkImage is an abstraction for drawing a rectagle of pixels, though the
28 * particular type of image could be actually storing its data on the GPU, or 28 * particular type of image could be actually storing its data on the GPU, or
29 * as drawing commands (picture or PDF or otherwise), ready to be played back 29 * as drawing commands (picture or PDF or otherwise), ready to be played back
30 * into another canvas. 30 * into another canvas.
31 * 31 *
32 * The content of SkImage is always immutable, though the actual storage may 32 * The content of SkImage is always immutable, though the actual storage may
33 * change, if for example that image can be re-created via encoded data or 33 * change, if for example that image can be re-created via encoded data or
34 * other means. 34 * other means.
35 */ 35 */
36 class SkImage : public SkRefCnt { 36 class SK_API SkImage : public SkRefCnt {
37 public: 37 public:
38 SK_DECLARE_INST_COUNT(SkImage) 38 SK_DECLARE_INST_COUNT(SkImage)
39 39
40 enum ColorType { 40 enum ColorType {
41 kAlpha_8_ColorType, 41 kAlpha_8_ColorType,
42 kRGB_565_ColorType, 42 kRGB_565_ColorType,
43 kRGBA_8888_ColorType, 43 kRGBA_8888_ColorType,
44 kBGRA_8888_ColorType, 44 kBGRA_8888_ColorType,
45 kPMColor_ColorType, 45 kPMColor_ColorType,
46 46
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const int fWidth; 91 const int fWidth;
92 const int fHeight; 92 const int fHeight;
93 const uint32_t fUniqueID; 93 const uint32_t fUniqueID;
94 94
95 static uint32_t NextUniqueID(); 95 static uint32_t NextUniqueID();
96 96
97 typedef SkRefCnt INHERITED; 97 typedef SkRefCnt INHERITED;
98 }; 98 };
99 99
100 #endif 100 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkSurface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698