blob: 3ff241a65de8f4c5af1ed57b4ace457d76b01671 [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 {
19 /**
20 * Creates an effect that performs clipping against an oval.
21 */
bungeman06ca8ec2016-06-09 08:01:03 -070022 sk_sp<GrFragmentProcessor> Make(GrPrimitiveEdgeType, const SkRect&);
commit-bot@chromium.org3eedb802014-03-28 15:58:31 +000023};
24
25#endif