| OLD | NEW |
| 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 |
| OLD | NEW |