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

Side by Side Diff: src/pipe/SkGPipePriv.h

Issue 26702002: force readbuffer clients to use specialized readFoo for flattenables (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/effects/gradients/SkGradientShader.cpp ('k') | src/pipe/SkGPipeRead.cpp » ('j') | 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 /* 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
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
OLDNEW
« no previous file with comments | « src/effects/gradients/SkGradientShader.cpp ('k') | src/pipe/SkGPipeRead.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698