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

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

Issue 239393002: remove legacy filter-flags, and store FilterLevel directly (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: use DEF_TEST Created 6 years, 8 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/core/SkPaint.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
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 && !(flags & SkGPipeWriter::kSharedAddressSpace_Flag)); 217 && !(flags & SkGPipeWriter::kSharedAddressSpace_Flag));
218 } 218 }
219 219
220 /////////////////////////////////////////////////////////////////////////////// 220 ///////////////////////////////////////////////////////////////////////////////
221 221
222 enum PaintOps { 222 enum PaintOps {
223 kReset_PaintOp, // no arg 223 kReset_PaintOp, // no arg
224 224
225 kFlags_PaintOp, // arg inline 225 kFlags_PaintOp, // arg inline
226 kColor_PaintOp, // arg 32 226 kColor_PaintOp, // arg 32
227 kFilterLevel_PaintOp, // arg inline
227 kStyle_PaintOp, // arg inline 228 kStyle_PaintOp, // arg inline
228 kJoin_PaintOp, // arg inline 229 kJoin_PaintOp, // arg inline
229 kCap_PaintOp, // arg inline 230 kCap_PaintOp, // arg inline
230 kWidth_PaintOp, // arg scalar 231 kWidth_PaintOp, // arg scalar
231 kMiter_PaintOp, // arg scalar 232 kMiter_PaintOp, // arg scalar
232 233
233 kEncoding_PaintOp, // arg inline - text 234 kEncoding_PaintOp, // arg inline - text
234 kHinting_PaintOp, // arg inline - text 235 kHinting_PaintOp, // arg inline - text
235 kAlign_PaintOp, // arg inline - text 236 kAlign_PaintOp, // arg inline - text
236 kTextSize_PaintOp, // arg scalar - text 237 kTextSize_PaintOp, // arg scalar - text
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 SkASSERT(0 == (op & ~PAINTOPS_OP_MASK)); 279 SkASSERT(0 == (op & ~PAINTOPS_OP_MASK));
279 SkASSERT(0 == (flags & ~PAINTOPS_FLAG_MASK)); 280 SkASSERT(0 == (flags & ~PAINTOPS_FLAG_MASK));
280 SkASSERT(0 == (data & ~PAINTOPS_DATA_MASK)); 281 SkASSERT(0 == (data & ~PAINTOPS_DATA_MASK));
281 282
282 return (op << (PAINTOPS_FLAG_BITS + PAINTOPS_DATA_BITS)) | 283 return (op << (PAINTOPS_FLAG_BITS + PAINTOPS_DATA_BITS)) |
283 (flags << PAINTOPS_DATA_BITS) | 284 (flags << PAINTOPS_DATA_BITS) |
284 data; 285 data;
285 } 286 }
286 287
287 #endif 288 #endif
OLDNEW
« no previous file with comments | « src/core/SkPaint.cpp ('k') | src/pipe/SkGPipeRead.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698