OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |