1/*
2 * Copyright 2014 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 GrOvalEffect_DEFINED
9#define GrOvalEffect_DEFINED
10
11#include "include/core/SkRefCnt.h"
12#include "include/gpu/GrTypes.h"
13#include "include/private/GrTypesPriv.h"
14#include "src/gpu/GrFragmentProcessor.h"
15
16class GrShaderCaps;
17struct SkRect;
18
19namespace GrOvalEffect {
20
21/**
22 * Creates an effect that performs clipping against an oval.
23 */
24GrFPResult Make(std::unique_ptr<GrFragmentProcessor>, GrClipEdgeType, const SkRect&,
25 const GrShaderCaps&);
26} // namespace GrOvalEffect
27
28#endif
29