xref: /aosp_15_r20/external/skia/src/gpu/ganesh/effects/GrCustomXfermode.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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 class GrXPFactory;
12 enum class SkBlendMode;
13 
14 /**
15  * Custom Xfer modes are used for blending when the blend mode cannot be represented using blend
16  * coefficients.
17  */
18 namespace GrCustomXfermode {
19     bool IsSupportedMode(SkBlendMode mode);
20     const GrXPFactory* Get(SkBlendMode mode);
21 }  // namespace GrCustomXfermode
22 
23 #endif
24