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

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

Issue 23021015: Initial error handling code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Integrating readFoo changes 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 */ 216 */
217 static bool AsNewEffectOrCoeff(SkXfermode*, 217 static bool AsNewEffectOrCoeff(SkXfermode*,
218 GrContext*, 218 GrContext*,
219 GrEffectRef** effect, 219 GrEffectRef** effect,
220 Coeff* src, 220 Coeff* src,
221 Coeff* dst, 221 Coeff* dst,
222 GrTexture* background = NULL); 222 GrTexture* background = NULL);
223 223
224 SkDEVCODE(virtual void toString(SkString* str) const = 0;) 224 SkDEVCODE(virtual void toString(SkString* str) const = 0;)
225 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() 225 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
226 SK_DEFINE_FLATTENABLE_EFFECT_TYPE(Xfermode)
227
226 protected: 228 protected:
227 SkXfermode(SkFlattenableReadBuffer& rb) : SkFlattenable(rb) {} 229 SkXfermode(SkFlattenableReadBuffer& rb) : SkFlattenable(rb) {}
228 230
229 /** The default implementation of xfer32/xfer16/xferA8 in turn call this 231 /** The default implementation of xfer32/xfer16/xferA8 in turn call this
230 method, 1 color at a time (upscaled to a SkPMColor). The default 232 method, 1 color at a time (upscaled to a SkPMColor). The default
231 implmentation of this method just returns dst. If performance is 233 implmentation of this method just returns dst. If performance is
232 important, your subclass should override xfer32/xfer16/xferA8 directly. 234 important, your subclass should override xfer32/xfer16/xferA8 directly.
233 235
234 This method will not be called directly by the client, so it need not 236 This method will not be called directly by the client, so it need not
235 be implemented if your subclass has overridden xfer32/xfer16/xferA8 237 be implemented if your subclass has overridden xfer32/xfer16/xferA8
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 return fProc; 284 return fProc;
283 } 285 }
284 286
285 private: 287 private:
286 SkXfermodeProc fProc; 288 SkXfermodeProc fProc;
287 289
288 typedef SkXfermode INHERITED; 290 typedef SkXfermode INHERITED;
289 }; 291 };
290 292
291 #endif 293 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698