blob: e4f30b34622c70b637c8459ebe31e0f8529d2d35 [file] [log] [blame]
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrRRectEffect_DEFINED
#define GrRRectEffect_DEFINED
#include "include/core/SkRefCnt.h"
#include "include/gpu/GrTypes.h"
#include "include/private/gpu/ganesh/GrTypesPriv.h"
#include "src/gpu/ganesh/GrFragmentProcessor.h"
struct GrShaderCaps;
class GrProcessor;
class SkRRect;
namespace GrRRectEffect {
/**
* Creates an effect that performs anti-aliased clipping against a SkRRect. It doesn't support
* all varieties of SkRRect, so the caller must check `success` in the GrFPResult.
*/
GrFPResult Make(std::unique_ptr<GrFragmentProcessor>, GrClipEdgeType, const SkRRect&,
const GrShaderCaps&);
} // namespace GrRRectEffect
#endif