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

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

Issue 352873003: update dox (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 60 }
61 61
62 static inline bool SkAlphaTypeIsValid(unsigned value) { 62 static inline bool SkAlphaTypeIsValid(unsigned value) {
63 return value <= kLastEnum_SkAlphaType; 63 return value <= kLastEnum_SkAlphaType;
64 } 64 }
65 65
66 /////////////////////////////////////////////////////////////////////////////// 66 ///////////////////////////////////////////////////////////////////////////////
67 67
68 /** 68 /**
69 * Describes how to interpret the components of a pixel. 69 * Describes how to interpret the components of a pixel.
70 *
71 * kN32_SkColorType is an alias for whichever 32bit ARGB format is the "native"
72 * form for skia's blitters. Use this if you don't have a swizzle preference
73 * for 32bit pixels.
70 */ 74 */
71 enum SkColorType { 75 enum SkColorType {
72 kUnknown_SkColorType, 76 kUnknown_SkColorType,
73 kAlpha_8_SkColorType, 77 kAlpha_8_SkColorType,
74 kRGB_565_SkColorType, 78 kRGB_565_SkColorType,
75 kARGB_4444_SkColorType, 79 kARGB_4444_SkColorType,
76 kRGBA_8888_SkColorType, 80 kRGBA_8888_SkColorType,
77 kBGRA_8888_SkColorType, 81 kBGRA_8888_SkColorType,
78 kIndex_8_SkColorType, 82 kIndex_8_SkColorType,
79 83
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 243
240 bool validRowBytes(size_t rowBytes) const { 244 bool validRowBytes(size_t rowBytes) const {
241 uint64_t rb = sk_64_mul(fWidth, this->bytesPerPixel()); 245 uint64_t rb = sk_64_mul(fWidth, this->bytesPerPixel());
242 return rowBytes >= rb; 246 return rowBytes >= rb;
243 } 247 }
244 248
245 SkDEBUGCODE(void validate() const;) 249 SkDEBUGCODE(void validate() const;)
246 }; 250 };
247 251
248 #endif 252 #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