2015-01-15 18:52:32 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2016-11-15 21:44:34 +00:00
|
|
|
#include "SkBlendMode.h"
|
|
|
|
#include "SkRefCnt.h"
|
2015-01-15 18:52:32 +00:00
|
|
|
|
|
|
|
class GrTexture;
|
2016-11-15 21:44:34 +00:00
|
|
|
class GrXPFactory;
|
2015-01-15 18:52:32 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom Xfer modes are used for blending when the blend mode cannot be represented using blend
|
2015-09-15 22:33:27 +00:00
|
|
|
* coefficients.
|
2015-01-15 18:52:32 +00:00
|
|
|
*/
|
|
|
|
namespace GrCustomXfermode {
|
2016-10-28 19:42:34 +00:00
|
|
|
bool IsSupportedMode(SkBlendMode mode);
|
2017-01-09 16:46:10 +00:00
|
|
|
const GrXPFactory* Get(SkBlendMode mode);
|
2015-01-15 18:52:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|