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
|
|
|
|
|
|
|
|
#include "SkXfermode.h"
|
|
|
|
|
|
|
|
class GrTexture;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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 {
|
2015-09-15 22:33:27 +00:00
|
|
|
bool IsSupportedMode(SkXfermode::Mode mode);
|
2016-06-09 15:01:03 +00:00
|
|
|
sk_sp<GrXPFactory> MakeXPFactory(SkXfermode::Mode mode);
|
2015-01-15 18:52:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|