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 "include/core/SkBlendMode.h"
12#include "include/core/SkRefCnt.h"
13
14class GrTexture;
15class GrXPFactory;
16
17/**
18 * Custom Xfer modes are used for blending when the blend mode cannot be represented using blend
19 * coefficients.
20 */
21namespace GrCustomXfermode {
22 bool IsSupportedMode(SkBlendMode mode);
23 const GrXPFactory* Get(SkBlendMode mode);
24};
25
26#endif
27