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

Side by Side Diff: include/effects/SkLayerDrawLooper.h

Issue 181433009: try to deprecate fFlagsMask from SkLayerDrawLooper (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « gm/megalooper.cpp ('k') | src/effects/SkLayerDrawLooper.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 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
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 #ifndef SkLayerDrawLooper_DEFINED 8 #ifndef SkLayerDrawLooper_DEFINED
9 #define SkLayerDrawLooper_DEFINED 9 #define SkLayerDrawLooper_DEFINED
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 * 59 *
60 * fColorMode controls how we compute the final color for the layer: 60 * fColorMode controls how we compute the final color for the layer:
61 * The layer's paint's color is treated as the SRC 61 * The layer's paint's color is treated as the SRC
62 * The draw's paint's color is treated as the DST 62 * The draw's paint's color is treated as the DST
63 * final-color = Mode(layers-color, draws-color); 63 * final-color = Mode(layers-color, draws-color);
64 * Any SkXfermode::Mode will work. Two common choices are: 64 * Any SkXfermode::Mode will work. Two common choices are:
65 * kSrc_Mode: to use the layer's color, ignoring the draw's 65 * kSrc_Mode: to use the layer's color, ignoring the draw's
66 * kDst_Mode: to just keep the draw's color, ignoring the layer's 66 * kDst_Mode: to just keep the draw's color, ignoring the layer's
67 */ 67 */
68 struct SK_API LayerInfo { 68 struct SK_API LayerInfo {
69 #ifdef SK_SUPPORT_LEGACY_LAYERDRAWLOOPER_PAINTFLAGS
69 uint32_t fFlagsMask; // SkPaint::Flags 70 uint32_t fFlagsMask; // SkPaint::Flags
71 #endif
70 BitFlags fPaintBits; 72 BitFlags fPaintBits;
71 SkXfermode::Mode fColorMode; 73 SkXfermode::Mode fColorMode;
72 SkVector fOffset; 74 SkVector fOffset;
73 bool fPostTranslate; //!< applies to fOffset 75 bool fPostTranslate; //!< applies to fOffset
74 76
75 /** 77 /**
76 * Initial the LayerInfo. Defaults to settings that will draw the 78 * Initial the LayerInfo. Defaults to settings that will draw the
77 * layer with no changes: e.g. 79 * layer with no changes: e.g.
78 * fPaintBits == 0 80 * fPaintBits == 0
79 * fColorMode == kDst_Mode 81 * fColorMode == kDst_Mode
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 SkLayerDrawLooper* detachLooper(); 172 SkLayerDrawLooper* detachLooper();
171 173
172 private: 174 private:
173 Rec* fRecs; 175 Rec* fRecs;
174 Rec* fTopRec; 176 Rec* fTopRec;
175 int fCount; 177 int fCount;
176 }; 178 };
177 }; 179 };
178 180
179 #endif 181 #endif
OLDNEW
« no previous file with comments | « gm/megalooper.cpp ('k') | src/effects/SkLayerDrawLooper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698