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/core/SkXfermode.h

Issue 13334011: Add Xfermode bench. Also clear before rendering in bench (rather than after). (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 kExclusion_Mode, 121 kExclusion_Mode,
122 kMultiply_Mode, 122 kMultiply_Mode,
123 123
124 kHue_Mode, 124 kHue_Mode,
125 kSaturation_Mode, 125 kSaturation_Mode,
126 kColor_Mode, 126 kColor_Mode,
127 kLuminosity_Mode, 127 kLuminosity_Mode,
128 128
129 kLastMode = kLuminosity_Mode 129 kLastMode = kLuminosity_Mode
130 }; 130 };
131
132 /**
133 * Gets the name of the Mode as a string.
134 */
135 static const char* ModeName(Mode);
131 136
132 /** 137 /**
133 * If the xfermode is one of the modes in the Mode enum, then asMode() 138 * If the xfermode is one of the modes in the Mode enum, then asMode()
134 * returns true and sets (if not null) mode accordingly. Otherwise it 139 * returns true and sets (if not null) mode accordingly. Otherwise it
135 * returns false and ignores the mode parameter. 140 * returns false and ignores the mode parameter.
136 */ 141 */
137 virtual bool asMode(Mode* mode) const; 142 virtual bool asMode(Mode* mode) const;
138 143
139 /** 144 /**
140 * The same as calling xfermode->asMode(mode), except that this also checks 145 * The same as calling xfermode->asMode(mode), except that this also checks
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 fProc = proc; 267 fProc = proc;
263 } 268 }
264 269
265 private: 270 private:
266 SkXfermodeProc fProc; 271 SkXfermodeProc fProc;
267 272
268 typedef SkXfermode INHERITED; 273 typedef SkXfermode INHERITED;
269 }; 274 };
270 275
271 #endif 276 #endif
OLDNEW
« bench/XfermodeBench.cpp ('K') | « gyp/bench.gypi ('k') | src/core/SkXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698