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

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

Issue 25968004: commit to xfermode objects being immutable (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: use SK_DECLARE_STATIC_MUTEX Created 7 years, 2 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 This method will not be called directly by the client, so it need not 231 This method will not be called directly by the client, so it need not
232 be implemented if your subclass has overridden xfer32/xfer16/xferA8 232 be implemented if your subclass has overridden xfer32/xfer16/xferA8
233 */ 233 */
234 virtual SkPMColor xferColor(SkPMColor src, SkPMColor dst) const; 234 virtual SkPMColor xferColor(SkPMColor src, SkPMColor dst) const;
235 235
236 private: 236 private:
237 enum { 237 enum {
238 kModeCount = kLastMode + 1 238 kModeCount = kLastMode + 1
239 }; 239 };
240
241 friend class SkGraphics;
242 static void Term();
243
240 typedef SkFlattenable INHERITED; 244 typedef SkFlattenable INHERITED;
241 }; 245 };
242 246
243 /////////////////////////////////////////////////////////////////////////////// 247 ///////////////////////////////////////////////////////////////////////////////
244 248
245 /** \class SkProcXfermode 249 /** \class SkProcXfermode
246 250
247 SkProcXfermode is a xfermode that applies the specified proc to its colors. 251 SkProcXfermode is a xfermode that applies the specified proc to its colors.
248 This class is not exported to java. 252 This class is not exported to java.
249 */ 253 */
(...skipping 21 matching lines...) Expand all
271 fProc = proc; 275 fProc = proc;
272 } 276 }
273 277
274 private: 278 private:
275 SkXfermodeProc fProc; 279 SkXfermodeProc fProc;
276 280
277 typedef SkXfermode INHERITED; 281 typedef SkXfermode INHERITED;
278 }; 282 };
279 283
280 #endif 284 #endif
OLDNEW
« bench/XfermodeBench.cpp ('K') | « bench/XfermodeBench.cpp ('k') | src/core/SkGraphics.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698