| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 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 |
| 11 #ifndef SkGPipePriv_DEFINED | 11 #ifndef SkGPipePriv_DEFINED |
| 12 #define SkGPipePriv_DEFINED | 12 #define SkGPipePriv_DEFINED |
| 13 | 13 |
| 14 #include "SkTypes.h" | 14 #include "SkTypes.h" |
| 15 | 15 |
| 16 #define UNIMPLEMENTED | 16 #define UNIMPLEMENTED |
| 17 | 17 |
| 18 // these must be contiguous, 0...N-1 | 18 // these must be contiguous, 0...N-1 |
| 19 enum PaintFlats { | 19 enum PaintFlats { |
| 20 kColorFilter_PaintFlat, | 20 kColorFilter_PaintFlat, |
| 21 kDrawLooper_PaintFlat, | 21 kDrawLooper_PaintFlat, |
| 22 kImageFilter_PaintFlat, |
| 22 kMaskFilter_PaintFlat, | 23 kMaskFilter_PaintFlat, |
| 23 kPathEffect_PaintFlat, | 24 kPathEffect_PaintFlat, |
| 24 kRasterizer_PaintFlat, | 25 kRasterizer_PaintFlat, |
| 25 kShader_PaintFlat, | 26 kShader_PaintFlat, |
| 26 kImageFilter_PaintFlat, | |
| 27 kXfermode_PaintFlat, | 27 kXfermode_PaintFlat, |
| 28 | 28 |
| 29 kLast_PaintFlat = kXfermode_PaintFlat | 29 kLast_PaintFlat = kXfermode_PaintFlat |
| 30 }; | 30 }; |
| 31 #define kCount_PaintFlats (kLast_PaintFlat + 1) | 31 #define kCount_PaintFlats (kLast_PaintFlat + 1) |
| 32 | 32 |
| 33 enum DrawOps { | 33 enum DrawOps { |
| 34 kSkip_DrawOp, // skip an addition N bytes (N == data) | 34 kSkip_DrawOp, // skip an addition N bytes (N == data) |
| 35 | 35 |
| 36 // these match Canvas apis | 36 // these match Canvas apis |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 SkASSERT(0 == (op & ~PAINTOPS_OP_MASK)); | 278 SkASSERT(0 == (op & ~PAINTOPS_OP_MASK)); |
| 279 SkASSERT(0 == (flags & ~PAINTOPS_FLAG_MASK)); | 279 SkASSERT(0 == (flags & ~PAINTOPS_FLAG_MASK)); |
| 280 SkASSERT(0 == (data & ~PAINTOPS_DATA_MASK)); | 280 SkASSERT(0 == (data & ~PAINTOPS_DATA_MASK)); |
| 281 | 281 |
| 282 return (op << (PAINTOPS_FLAG_BITS + PAINTOPS_DATA_BITS)) | | 282 return (op << (PAINTOPS_FLAG_BITS + PAINTOPS_DATA_BITS)) | |
| 283 (flags << PAINTOPS_DATA_BITS) | | 283 (flags << PAINTOPS_DATA_BITS) | |
| 284 data; | 284 data; |
| 285 } | 285 } |
| 286 | 286 |
| 287 #endif | 287 #endif |
| OLD | NEW |