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

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: Rebase 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
« no previous file with comments | « include/core/SkShader.h ('k') | samplecode/SampleFilterFuzz.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 /** A subclass must implement this factory function to work with the GPU bac kend. 228 /** A subclass must implement this factory function to work with the GPU bac kend.
229 The xfermode will return a factory for which the caller will get a ref. It is up 229 The xfermode will return a factory for which the caller will get a ref. It is up
230 to the caller to install it. XferProcessors cannot use a background text ure. 230 to the caller to install it. XferProcessors cannot use a background text ure.
231 */ 231 */
232 virtual GrXPFactory* asXPFactory() const; 232 virtual GrXPFactory* asXPFactory() const;
233 #endif 233 #endif
234 234
235 SK_TO_STRING_PUREVIRT() 235 SK_TO_STRING_PUREVIRT()
236 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() 236 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
237 SK_DEFINE_FLATTENABLE_TYPE(SkXfermode)
238 237
239 enum D32Flags { 238 enum D32Flags {
240 kSrcIsOpaque_D32Flag = 1 << 0, 239 kSrcIsOpaque_D32Flag = 1 << 0,
241 kSrcIsSingle_D32Flag = 1 << 1, 240 kSrcIsSingle_D32Flag = 1 << 1,
242 kDstIsSRGB_D32Flag = 1 << 2, 241 kDstIsSRGB_D32Flag = 1 << 2,
243 }; 242 };
244 typedef void (*D32Proc)(const SkXfermode*, uint32_t dst[], const SkPM4f src[ ], 243 typedef void (*D32Proc)(const SkXfermode*, uint32_t dst[], const SkPM4f src[ ],
245 int count, const SkAlpha coverage[]); 244 int count, const SkAlpha coverage[]);
246 static D32Proc GetD32Proc(SkXfermode*, uint32_t flags); 245 static D32Proc GetD32Proc(SkXfermode*, uint32_t flags);
247 static D32Proc GetD32Proc(const sk_sp<SkXfermode>& xfer, uint32_t flags) { 246 static D32Proc GetD32Proc(const sk_sp<SkXfermode>& xfer, uint32_t flags) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 286
288 private: 287 private:
289 enum { 288 enum {
290 kModeCount = kLastMode + 1 289 kModeCount = kLastMode + 1
291 }; 290 };
292 291
293 typedef SkFlattenable INHERITED; 292 typedef SkFlattenable INHERITED;
294 }; 293 };
295 294
296 #endif 295 #endif
OLDNEW
« no previous file with comments | « include/core/SkShader.h ('k') | samplecode/SampleFilterFuzz.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698