blob: 1372f237a7ad2ed027bdc2865f6cf5633292513b [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
11#include "GrTypes.h"
12#include "GrTypesPriv.h"
bungeman06ca8ec2016-06-09 08:01:03 -070013#include "SkRefCnt.h"
commit-bot@chromium.org3eedb802014-03-28 15:58:31 +000014
joshualitteb2a6762014-12-04 11:35:33 -080015class GrFragmentProcessor;
commit-bot@chromium.org3eedb802014-03-28 15:58:31 +000016struct SkRect;
17
18namespace GrOvalEffect {
Brian Salomonaff329b2017-08-11 09:40:37 -040019
20/**
21 * Creates an effect that performs clipping against an oval.
22 */
23std::unique_ptr<GrFragmentProcessor> Make(GrPrimitiveEdgeType, const SkRect&);
24
commit-bot@chromium.org3eedb802014-03-28 15:58:31 +000025};
26
27#endif