blob: 8b4c95d71b1e6619fe53e62fefb4a88591c14873 [file] [log] [blame]
commit-bot@chromium.org3eedb802014-03-28 15:58:31 +00001/*
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
Mike Kleinc0bd9f92019-04-23 12:05:21 -050011#include "include/core/SkRefCnt.h"
12#include "include/gpu/GrTypes.h"
13#include "include/private/GrTypesPriv.h"
commit-bot@chromium.org3eedb802014-03-28 15:58:31 +000014
joshualitteb2a6762014-12-04 11:35:33 -080015class GrFragmentProcessor;
Brian Salomon14471772017-12-05 10:35:15 -050016class GrShaderCaps;
commit-bot@chromium.org3eedb802014-03-28 15:58:31 +000017struct SkRect;
18
19namespace GrOvalEffect {
Brian Salomonaff329b2017-08-11 09:40:37 -040020
21/**
22 * Creates an effect that performs clipping against an oval.
23 */
Brian Salomon14471772017-12-05 10:35:15 -050024std::unique_ptr<GrFragmentProcessor> Make(GrClipEdgeType, const SkRect&, const GrShaderCaps&);
commit-bot@chromium.org3eedb802014-03-28 15:58:31 +000025};
26
27#endif