blob: 3bd321447552e42a0047fc236401e209fa22a4f1 [file] [log] [blame]
egdaniel0063a9b2015-01-15 10:52:32 -08001/*
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
egdaniel0063a9b2015-01-15 10:52:32 -080013class GrTexture;
14
15/**
16 * Custom Xfer modes are used for blending when the blend mode cannot be represented using blend
bsalomonae4738f2015-09-15 15:33:27 -070017 * coefficients.
egdaniel0063a9b2015-01-15 10:52:32 -080018 */
19namespace GrCustomXfermode {
bsalomonae4738f2015-09-15 15:33:27 -070020 bool IsSupportedMode(SkXfermode::Mode mode);
bungeman06ca8ec2016-06-09 08:01:03 -070021 sk_sp<GrXPFactory> MakeXPFactory(SkXfermode::Mode mode);
egdaniel0063a9b2015-01-15 10:52:32 -080022};
23
24#endif