| 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 kFirstPublicGrBlendCoeff = kZero_GrBlendCoeff, | 225 kPublicGrBlendCoeffCount |
| 226 kLastPublicGrBlendCoeff = kIConstA_GrBlendCoeff, | |
| 227 }; | 226 }; |
| 228 static const int kPublicGrBlendCoeffCount = kLastPublicGrBlendCoeff + 1; | |
| 229 | 227 |
| 230 /** | 228 /** |
| 231 * Formats for masks, used by the font cache. | 229 * Formats for masks, used by the font cache. |
| 232 * Important that these are 0-based. | 230 * Important that these are 0-based. |
| 233 */ | 231 */ |
| 234 enum GrMaskFormat { | 232 enum GrMaskFormat { |
| 235 kA8_GrMaskFormat, //!< 1-byte per pixel | 233 kA8_GrMaskFormat, //!< 1-byte per pixel |
| 236 kA565_GrMaskFormat, //!< 2-bytes per pixel | 234 kA565_GrMaskFormat, //!< 2-bytes per pixel |
| 237 kA888_GrMaskFormat, //!< 4-bytes per pixel | 235 kA888_GrMaskFormat, //!< 4-bytes per pixel |
| 238 kARGB_GrMaskFormat, //!< 4-bytes per pixel, color format | 236 kARGB_GrMaskFormat, //!< 4-bytes per pixel, color format |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 public: | 718 public: |
| 721 GrAutoMalloc() : INHERITED() {} | 719 GrAutoMalloc() : INHERITED() {} |
| 722 explicit GrAutoMalloc(size_t size) : INHERITED(size) {} | 720 explicit GrAutoMalloc(size_t size) : INHERITED(size) {} |
| 723 virtual ~GrAutoMalloc() {} | 721 virtual ~GrAutoMalloc() {} |
| 724 private: | 722 private: |
| 725 typedef GrAutoMallocBaseType INHERITED; | 723 typedef GrAutoMallocBaseType INHERITED; |
| 726 }; | 724 }; |
| 727 | 725 |
| 728 #undef GrAutoMallocBaseType | 726 #undef GrAutoMallocBaseType |
| 729 #endif | 727 #endif |
| OLD | NEW |