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

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

Issue 1685203002: lots of sRGB and F16 blits (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: use SkAutoTMalloc Created 4 years, 10 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/core.gypi ('k') | src/core/SkBitmapProcShader.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
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 /** Return an SkXfermode object for the specified mode. 142 /** Return an SkXfermode object for the specified mode.
143 */ 143 */
144 static SkXfermode* Create(Mode mode); 144 static SkXfermode* Create(Mode mode);
145 145
146 /** Return a function pointer to a routine that applies the specified 146 /** Return a function pointer to a routine that applies the specified
147 porter-duff transfer mode. 147 porter-duff transfer mode.
148 */ 148 */
149 static SkXfermodeProc GetProc(Mode mode); 149 static SkXfermodeProc GetProc(Mode mode);
150 static SkXfermodeProc4f GetProc4f(Mode); 150 static SkXfermodeProc4f GetProc4f(Mode);
151 151
152 virtual SkXfermodeProc4f getProc4f() const;
153
152 /** 154 /**
153 * If the specified mode can be represented by a pair of Coeff, then return 155 * If the specified mode can be represented by a pair of Coeff, then return
154 * true and set (if not NULL) the corresponding coeffs. If the mode is 156 * true and set (if not NULL) the corresponding coeffs. If the mode is
155 * not representable as a pair of Coeffs, return false and ignore the 157 * not representable as a pair of Coeffs, return false and ignore the
156 * src and dst parameters. 158 * src and dst parameters.
157 */ 159 */
158 static bool ModeAsCoeff(Mode mode, Coeff* src, Coeff* dst); 160 static bool ModeAsCoeff(Mode mode, Coeff* src, Coeff* dst);
159 161
160 SK_ATTR_DEPRECATED("use AsMode(...)") 162 SK_ATTR_DEPRECATED("use AsMode(...)")
161 static bool IsMode(const SkXfermode* xfer, Mode* mode) { 163 static bool IsMode(const SkXfermode* xfer, Mode* mode) {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 277
276 private: 278 private:
277 enum { 279 enum {
278 kModeCount = kLastMode + 1 280 kModeCount = kLastMode + 1
279 }; 281 };
280 282
281 typedef SkFlattenable INHERITED; 283 typedef SkFlattenable INHERITED;
282 }; 284 };
283 285
284 #endif 286 #endif
OLDNEW
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkBitmapProcShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698