| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 SkImageInfo_DEFINED | 8 #ifndef SkImageInfo_DEFINED |
| 9 #define SkImageInfo_DEFINED | 9 #define SkImageInfo_DEFINED |
| 10 | 10 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 kLinear_SkColorProfileType, | 148 kLinear_SkColorProfileType, |
| 149 kSRGB_SkColorProfileType, | 149 kSRGB_SkColorProfileType, |
| 150 | 150 |
| 151 kLastEnum_SkColorProfileType = kSRGB_SkColorProfileType | 151 kLastEnum_SkColorProfileType = kSRGB_SkColorProfileType |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 /** | 154 /** |
| 155 * Describe an image's dimensions and pixel type. | 155 * Describe an image's dimensions and pixel type. |
| 156 * Used for both src images and render-targets (surfaces). | 156 * Used for both src images and render-targets (surfaces). |
| 157 */ | 157 */ |
| 158 struct SkImageInfo { | 158 struct SK_API SkImageInfo { |
| 159 public: | 159 public: |
| 160 SkImageInfo() | 160 SkImageInfo() |
| 161 : fWidth(0) | 161 : fWidth(0) |
| 162 , fHeight(0) | 162 , fHeight(0) |
| 163 , fColorType(kUnknown_SkColorType) | 163 , fColorType(kUnknown_SkColorType) |
| 164 , fAlphaType(kIgnore_SkAlphaType) | 164 , fAlphaType(kIgnore_SkAlphaType) |
| 165 , fProfileType(kLinear_SkColorProfileType) | 165 , fProfileType(kLinear_SkColorProfileType) |
| 166 {} | 166 {} |
| 167 | 167 |
| 168 static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType a
t, | 168 static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType a
t, |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 , fHeight(height) | 298 , fHeight(height) |
| 299 , fColorType(ct) | 299 , fColorType(ct) |
| 300 , fAlphaType(at) | 300 , fAlphaType(at) |
| 301 , fProfileType(pt) | 301 , fProfileType(pt) |
| 302 {} | 302 {} |
| 303 | 303 |
| 304 SkColorProfileType fProfileType; | 304 SkColorProfileType fProfileType; |
| 305 }; | 305 }; |
| 306 | 306 |
| 307 #endif | 307 #endif |
| OLD | NEW |