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

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

Issue 1643753002: kill SkValue (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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 | « gyp/effects.gypi ('k') | include/effects/SkPixelXorXfermode.h » ('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 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
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 #ifndef SkXfermode_DEFINED 10 #ifndef SkXfermode_DEFINED
11 #define SkXfermode_DEFINED 11 #define SkXfermode_DEFINED
12 12
13 #include "SkFlattenable.h" 13 #include "SkFlattenable.h"
14 #include "SkColor.h" 14 #include "SkColor.h"
15 15
16 class GrFragmentProcessor; 16 class GrFragmentProcessor;
17 class GrTexture; 17 class GrTexture;
18 class GrXPFactory; 18 class GrXPFactory;
19 class SkString; 19 class SkString;
20 class SkValue;
21 20
22 /** \class SkXfermode 21 /** \class SkXfermode
23 * 22 *
24 * SkXfermode is the base class for objects that are called to implement custom 23 * SkXfermode is the base class for objects that are called to implement custom
25 * "transfer-modes" in the drawing pipeline. The static function Create(Modes) 24 * "transfer-modes" in the drawing pipeline. The static function Create(Modes)
26 * can be called to return an instance of any of the predefined subclasses as 25 * can be called to return an instance of any of the predefined subclasses as
27 * specified in the Modes enum. When an SkXfermode is assigned to an SkPaint, 26 * specified in the Modes enum. When an SkXfermode is assigned to an SkPaint,
28 * then objects drawn with that paint have the xfermode applied. 27 * then objects drawn with that paint have the xfermode applied.
29 * 28 *
30 * All subclasses are required to be reentrant-safe : it must be legal to share 29 * All subclasses are required to be reentrant-safe : it must be legal to share
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 This method will not be called directly by the client, so it need not 239 This method will not be called directly by the client, so it need not
241 be implemented if your subclass has overridden xfer32/xfer16/xferA8 240 be implemented if your subclass has overridden xfer32/xfer16/xferA8
242 */ 241 */
243 virtual SkPMColor xferColor(SkPMColor src, SkPMColor dst) const; 242 virtual SkPMColor xferColor(SkPMColor src, SkPMColor dst) const;
244 243
245 private: 244 private:
246 enum { 245 enum {
247 kModeCount = kLastMode + 1 246 kModeCount = kLastMode + 1
248 }; 247 };
249 248
250 template<typename T> friend SkValue SkToValue(const T*);
251 virtual SkValue asValue() const;
252
253 typedef SkFlattenable INHERITED; 249 typedef SkFlattenable INHERITED;
254 }; 250 };
255 251
256 #endif 252 #endif
OLDNEW
« no previous file with comments | « gyp/effects.gypi ('k') | include/effects/SkPixelXorXfermode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698