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

Side by Side Diff: include/gpu/effects/GrXfermodeFragmentProcessor.h

Issue 1334293003: Create fragment processor for performing input color blend with child processor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix Created 5 years, 3 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/gpu/effects/GrCustomXfermode.h ('k') | src/core/SkColorFilter.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 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrXfermodeFragmentProcessor_DEFINED 8 #ifndef GrXfermodeFragmentProcessor_DEFINED
9 #define GrXfermodeFragmentProcessor_DEFINED 9 #define GrXfermodeFragmentProcessor_DEFINED
10 10
11 #include "SkXfermode.h" 11 #include "SkXfermode.h"
12 12
13 class GrFragmentProcessor; 13 class GrFragmentProcessor;
14 14
15 namespace GrXfermodeFragmentProcessor { 15 namespace GrXfermodeFragmentProcessor {
16 /** The color input to the returned processor is treated as the src and the passed in processor
17 is the dst. */
18 const GrFragmentProcessor* CreateFromDstProcessor(const GrFragmentProcessor* dst,
19 SkXfermode::Mode mode);
20
21 /** The color input to the returned processor is treated as the dst and the passed in processor
22 is the src. */
23 const GrFragmentProcessor* CreateFromSrcProcessor(const GrFragmentProcessor* src,
24 SkXfermode::Mode mode);
25
16 const GrFragmentProcessor* CreateFromTwoProcessors(const GrFragmentProcessor * src, 26 const GrFragmentProcessor* CreateFromTwoProcessors(const GrFragmentProcessor * src,
17 const GrFragmentProcessor * dst, 27 const GrFragmentProcessor * dst,
18 SkXfermode::Mode mode); 28 SkXfermode::Mode mode);
19 }; 29 };
20 30
21 #endif 31 #endif
OLDNEW
« no previous file with comments | « include/gpu/effects/GrCustomXfermode.h ('k') | src/core/SkColorFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698