06ca8ec87c
Convert use of GrFragmentProcessor, GrGeometryProcessor, and GrXPFactory to sk_sp. This clarifies ownership and should reduce reference count churn by moving ownership. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2041113004 Review-Url: https://codereview.chromium.org/2041113004
25 lines
527 B
C++
25 lines
527 B
C++
/*
|
|
* 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);
|
|
sk_sp<GrXPFactory> MakeXPFactory(SkXfermode::Mode mode);
|
|
};
|
|
|
|
#endif
|