aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/effects/GrCustomXfermode.h
blob: bcbd5833ca8741a02295b9ab0e0f83f6d3178bd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright 2015 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef GrCustomXfermode_DEFINED
#define GrCustomXfermode_DEFINED

#include "SkXfermode.h"

class GrTexture;

/**
 * Custom Xfer modes are used for blending when the blend mode cannot be represented using blend
 * coefficients.
 */
namespace GrCustomXfermode {
    bool IsSupportedMode(SkXfermode::Mode mode);
    GrXPFactory* CreateXPFactory(SkXfermode::Mode mode);
};

#endif