OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 | 10 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 kIDC_GrBlendCoeff, //<! one minus dst color | 215 kIDC_GrBlendCoeff, //<! one minus dst color |
216 kSA_GrBlendCoeff, //<! src alpha | 216 kSA_GrBlendCoeff, //<! src alpha |
217 kISA_GrBlendCoeff, //<! one minus src alpha | 217 kISA_GrBlendCoeff, //<! one minus src alpha |
218 kDA_GrBlendCoeff, //<! dst alpha | 218 kDA_GrBlendCoeff, //<! dst alpha |
219 kIDA_GrBlendCoeff, //<! one minus dst alpha | 219 kIDA_GrBlendCoeff, //<! one minus dst alpha |
220 kConstC_GrBlendCoeff, //<! constant color | 220 kConstC_GrBlendCoeff, //<! constant color |
221 kIConstC_GrBlendCoeff, //<! one minus constant color | 221 kIConstC_GrBlendCoeff, //<! one minus constant color |
222 kConstA_GrBlendCoeff, //<! constant color alpha | 222 kConstA_GrBlendCoeff, //<! constant color alpha |
223 kIConstA_GrBlendCoeff, //<! one minus constant color alpha | 223 kIConstA_GrBlendCoeff, //<! one minus constant color alpha |
224 | 224 |
225 kPublicGrBlendCoeffCount | 225 kFirstPublicGrBlendCoeff = kZero_GrBlendCoeff, |
| 226 kLastPublicGrBlendCoeff = kIConstA_GrBlendCoeff, |
226 }; | 227 }; |
| 228 static const int kPublicGrBlendCoeffCount = kLastPublicGrBlendCoeff + 1; |
227 | 229 |
228 /** | 230 /** |
229 * Formats for masks, used by the font cache. | 231 * Formats for masks, used by the font cache. |
230 * Important that these are 0-based. | 232 * Important that these are 0-based. |
231 */ | 233 */ |
232 enum GrMaskFormat { | 234 enum GrMaskFormat { |
233 kA8_GrMaskFormat, //!< 1-byte per pixel | 235 kA8_GrMaskFormat, //!< 1-byte per pixel |
234 kA565_GrMaskFormat, //!< 2-bytes per pixel | 236 kA565_GrMaskFormat, //!< 2-bytes per pixel |
235 kA888_GrMaskFormat, //!< 4-bytes per pixel | 237 kA888_GrMaskFormat, //!< 4-bytes per pixel |
236 kARGB_GrMaskFormat, //!< 4-bytes per pixel, color format | 238 kARGB_GrMaskFormat, //!< 4-bytes per pixel, color format |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 public: | 720 public: |
719 GrAutoMalloc() : INHERITED() {} | 721 GrAutoMalloc() : INHERITED() {} |
720 explicit GrAutoMalloc(size_t size) : INHERITED(size) {} | 722 explicit GrAutoMalloc(size_t size) : INHERITED(size) {} |
721 virtual ~GrAutoMalloc() {} | 723 virtual ~GrAutoMalloc() {} |
722 private: | 724 private: |
723 typedef GrAutoMallocBaseType INHERITED; | 725 typedef GrAutoMallocBaseType INHERITED; |
724 }; | 726 }; |
725 | 727 |
726 #undef GrAutoMallocBaseType | 728 #undef GrAutoMallocBaseType |
727 #endif | 729 #endif |
OLD | NEW |