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

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

Issue 23021015: Initial error handling code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Comments fixed 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 SkColorFilter_DEFINED 10 #ifndef SkColorFilter_DEFINED
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 static SkColorFilter* CreateLightingFilter(SkColor mul, SkColor add); 124 static SkColorFilter* CreateLightingFilter(SkColor mul, SkColor add);
125 125
126 /** A subclass may implement this factory function to work with the GPU back end. If the return 126 /** A subclass may implement this factory function to work with the GPU back end. If the return
127 is non-NULL then the caller owns a ref on the returned object. 127 is non-NULL then the caller owns a ref on the returned object.
128 */ 128 */
129 virtual GrEffectRef* asNewEffect(GrContext*) const; 129 virtual GrEffectRef* asNewEffect(GrContext*) const;
130 130
131 SkDEVCODE(virtual void toString(SkString* str) const = 0;) 131 SkDEVCODE(virtual void toString(SkString* str) const = 0;)
132 132
133 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() 133 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
134 SK_DEFINE_FLATTENABLE_EFFECT_TYPE(ColorFilter)
mtklein 2013/10/16 18:54:09 I started a little confused that these don't quite
sugoi1 2013/10/16 20:07:41 There's no Sk in the enum, but I'll add it.
135
134 protected: 136 protected:
135 SkColorFilter() {} 137 SkColorFilter() {}
136 SkColorFilter(SkFlattenableReadBuffer& rb) : INHERITED(rb) {} 138 SkColorFilter(SkFlattenableReadBuffer& rb) : INHERITED(rb) {}
137 139
138 private: 140 private:
139 typedef SkFlattenable INHERITED; 141 typedef SkFlattenable INHERITED;
140 }; 142 };
141 143
142 #endif 144 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698