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

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

Issue 1834303003: Delete SkFlattenable::Type (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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
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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 /** A subclass must implement this factory function to work with the GPU bac kend. 212 /** A subclass must implement this factory function to work with the GPU bac kend.
213 The xfermode will return a factory for which the caller will get a ref. It is up 213 The xfermode will return a factory for which the caller will get a ref. It is up
214 to the caller to install it. XferProcessors cannot use a background text ure. 214 to the caller to install it. XferProcessors cannot use a background text ure.
215 */ 215 */
216 virtual GrXPFactory* asXPFactory() const; 216 virtual GrXPFactory* asXPFactory() const;
217 #endif 217 #endif
218 218
219 SK_TO_STRING_PUREVIRT() 219 SK_TO_STRING_PUREVIRT()
220 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() 220 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
221 SK_DEFINE_FLATTENABLE_TYPE(SkXfermode)
222 221
223 enum D32Flags { 222 enum D32Flags {
224 kSrcIsOpaque_D32Flag = 1 << 0, 223 kSrcIsOpaque_D32Flag = 1 << 0,
225 kSrcIsSingle_D32Flag = 1 << 1, 224 kSrcIsSingle_D32Flag = 1 << 1,
226 kDstIsSRGB_D32Flag = 1 << 2, 225 kDstIsSRGB_D32Flag = 1 << 2,
227 }; 226 };
228 typedef void (*D32Proc)(const SkXfermode*, uint32_t dst[], const SkPM4f src[ ], 227 typedef void (*D32Proc)(const SkXfermode*, uint32_t dst[], const SkPM4f src[ ],
229 int count, const SkAlpha coverage[]); 228 int count, const SkAlpha coverage[]);
230 static D32Proc GetD32Proc(SkXfermode*, uint32_t flags); 229 static D32Proc GetD32Proc(SkXfermode*, uint32_t flags);
231 230
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 264
266 private: 265 private:
267 enum { 266 enum {
268 kModeCount = kLastMode + 1 267 kModeCount = kLastMode + 1
269 }; 268 };
270 269
271 typedef SkFlattenable INHERITED; 270 typedef SkFlattenable INHERITED;
272 }; 271 };
273 272
274 #endif 273 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698