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 29 matching lines...) Expand all Loading... |
40 kLastEnum_SkColorType = kBGRA_8888_SkColorType | 40 kLastEnum_SkColorType = kBGRA_8888_SkColorType |
41 }; | 41 }; |
42 | 42 |
43 struct SkImageInfo { | 43 struct SkImageInfo { |
44 int fWidth; | 44 int fWidth; |
45 int fHeight; | 45 int fHeight; |
46 SkColorType fColorType; | 46 SkColorType fColorType; |
47 SkAlphaType fAlphaType; | 47 SkAlphaType fAlphaType; |
48 }; | 48 }; |
49 | 49 |
| 50 bool operator==(const SkImageInfo& lhs, const SkImageInfo& rhs); |
| 51 bool operator!=(const SkImageInfo& lhs, const SkImageInfo& rhs); |
| 52 |
50 /** | 53 /** |
51 * SkImage is an abstraction for drawing a rectagle of pixels, though the | 54 * SkImage is an abstraction for drawing a rectagle of pixels, though the |
52 * particular type of image could be actually storing its data on the GPU, or | 55 * particular type of image could be actually storing its data on the GPU, or |
53 * as drawing commands (picture or PDF or otherwise), ready to be played back | 56 * as drawing commands (picture or PDF or otherwise), ready to be played back |
54 * into another canvas. | 57 * into another canvas. |
55 * | 58 * |
56 * The content of SkImage is always immutable, though the actual storage may | 59 * The content of SkImage is always immutable, though the actual storage may |
57 * change, if for example that image can be re-created via encoded data or | 60 * change, if for example that image can be re-created via encoded data or |
58 * other means. | 61 * other means. |
59 */ | 62 */ |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 const int fWidth; | 146 const int fWidth; |
144 const int fHeight; | 147 const int fHeight; |
145 const uint32_t fUniqueID; | 148 const uint32_t fUniqueID; |
146 | 149 |
147 static uint32_t NextUniqueID(); | 150 static uint32_t NextUniqueID(); |
148 | 151 |
149 typedef SkRefCnt INHERITED; | 152 typedef SkRefCnt INHERITED; |
150 }; | 153 }; |
151 | 154 |
152 #endif | 155 #endif |
OLD | NEW |