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

Side by Side Diff: include/core/SkShader.h

Issue 1009193002: move kTileModeCount out of TileMode enum (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | 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 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #ifndef SkShader_DEFINED 9 #ifndef SkShader_DEFINED
10 #define SkShader_DEFINED 10 #define SkShader_DEFINED
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 /** repeat the shader's image horizontally and vertically, alternating 59 /** repeat the shader's image horizontally and vertically, alternating
60 * mirror images so that adjacent images always seam 60 * mirror images so that adjacent images always seam
61 */ 61 */
62 kMirror_TileMode, 62 kMirror_TileMode,
63 63
64 #if 0 64 #if 0
65 /** only draw within the original domain, return 0 everywhere else */ 65 /** only draw within the original domain, return 0 everywhere else */
66 kDecal_TileMode, 66 kDecal_TileMode,
67 #endif 67 #endif
68 };
68 69
69 kTileModeCount 70 enum {
71 kTileModeCount = kMirror_TileMode + 1
70 }; 72 };
71 73
72 // override these in your subclass 74 // override these in your subclass
73 75
74 enum Flags { 76 enum Flags {
75 //!< set if all of the colors will be opaque 77 //!< set if all of the colors will be opaque
76 kOpaqueAlpha_Flag = 0x01, 78 kOpaqueAlpha_Flag = 0x01,
77 79
78 //! set if this shader's shadeSpan16() method can be called 80 //! set if this shader's shadeSpan16() method can be called
79 kHasSpan16_Flag = 0x02, 81 kHasSpan16_Flag = 0x02,
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 // constructors. 494 // constructors.
493 SkMatrix fLocalMatrix; 495 SkMatrix fLocalMatrix;
494 496
495 // So the SkLocalMatrixShader can whack fLocalMatrix in its SkReadBuffer con structor. 497 // So the SkLocalMatrixShader can whack fLocalMatrix in its SkReadBuffer con structor.
496 friend class SkLocalMatrixShader; 498 friend class SkLocalMatrixShader;
497 499
498 typedef SkFlattenable INHERITED; 500 typedef SkFlattenable INHERITED;
499 }; 501 };
500 502
501 #endif 503 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698