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

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: Minor comment fixes 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 */ 115 */
116 static SkColorFilter* CreateLightingFilter(SkColor mul, SkColor add); 116 static SkColorFilter* CreateLightingFilter(SkColor mul, SkColor add);
117 117
118 /** A subclass may implement this factory function to work with the GPU back end. If the return 118 /** A subclass may implement this factory function to work with the GPU back end. If the return
119 is non-NULL then the caller owns a ref on the returned object. 119 is non-NULL then the caller owns a ref on the returned object.
120 */ 120 */
121 virtual GrEffectRef* asNewEffect(GrContext*) const; 121 virtual GrEffectRef* asNewEffect(GrContext*) const;
122 122
123 SkDEVCODE(virtual void toString(SkString* str) const = 0;) 123 SkDEVCODE(virtual void toString(SkString* str) const = 0;)
124 124
125 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() 125 SK_DECLARE_FLATTENABLE_GROUP_BASE_TYPE(SkColorFilter)
126 protected: 126 protected:
127 SkColorFilter() {} 127 SkColorFilter() {}
128 SkColorFilter(SkFlattenableReadBuffer& rb) : INHERITED(rb) {} 128 SkColorFilter(SkFlattenableReadBuffer& rb) : INHERITED(rb) {}
129 129
130 private: 130 private:
131 typedef SkFlattenable INHERITED; 131 typedef SkFlattenable INHERITED;
132 }; 132 };
133 133
134 #endif 134 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698