egdaniel | 0063a9b | 2015-01-15 10:52:32 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #ifndef GrCustomXfermode_DEFINED |
| 9 | #define GrCustomXfermode_DEFINED |
| 10 | |
| 11 | #include "SkXfermode.h" |
| 12 | |
egdaniel | 0063a9b | 2015-01-15 10:52:32 -0800 | [diff] [blame] | 13 | class GrTexture; |
| 14 | |
| 15 | /** |
| 16 | * Custom Xfer modes are used for blending when the blend mode cannot be represented using blend |
bsalomon | ae4738f | 2015-09-15 15:33:27 -0700 | [diff] [blame] | 17 | * coefficients. |
egdaniel | 0063a9b | 2015-01-15 10:52:32 -0800 | [diff] [blame] | 18 | */ |
| 19 | namespace GrCustomXfermode { |
bsalomon | ae4738f | 2015-09-15 15:33:27 -0700 | [diff] [blame] | 20 | bool IsSupportedMode(SkXfermode::Mode mode); |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 21 | sk_sp<GrXPFactory> MakeXPFactory(SkXfermode::Mode mode); |
egdaniel | 0063a9b | 2015-01-15 10:52:32 -0800 | [diff] [blame] | 22 | }; |
| 23 | |
| 24 | #endif |