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

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

Issue 893603005: export SkImageInfo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | 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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698