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 GrBlendFragmentProcessor_DEFINED
9#define GrBlendFragmentProcessor_DEFINED
10
11#include "include/core/SkBlendMode.h"
12#include "include/core/SkRefCnt.h"
13
14class GrFragmentProcessor;
15
16namespace GrBlendFragmentProcessor {
17
18/**
19 * Blends src and dst inputs according to the blend mode. If either input is null, fInputColor is
20 * used instead.
21 */
22std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> src,
23                                          std::unique_ptr<GrFragmentProcessor> dst,
24                                          SkBlendMode mode);
25
26}  // namespace GrBlendFragmentProcessor
27
28#endif
29