blob: bcf4884ddd97de6f9fb527d50ab0ea2be01299cc [file] [log] [blame]
commit-bot@chromium.orgc2f78242014-02-19 15:18:05 +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 GrRRectEffect_DEFINED
9#define GrRRectEffect_DEFINED
10
commit-bot@chromium.orge5280892014-02-21 17:52:29 +000011#include "GrTypes.h"
commit-bot@chromium.orgcabf4b22014-03-05 18:27:43 +000012#include "GrTypesPriv.h"
commit-bot@chromium.orgc2f78242014-02-19 15:18:05 +000013
bsalomon97b9ab72014-07-08 06:52:35 -070014class GrEffect;
commit-bot@chromium.orge5280892014-02-21 17:52:29 +000015class SkRRect;
commit-bot@chromium.orgc2f78242014-02-19 15:18:05 +000016
commit-bot@chromium.orge5280892014-02-21 17:52:29 +000017namespace GrRRectEffect {
18 /**
19 * Creates an effect that performs anti-aliased clipping against a SkRRect. It doesn't support
20 * all varieties of SkRRect so the caller must check for a NULL return.
21 */
bsalomon97b9ab72014-07-08 06:52:35 -070022 GrEffect* Create(GrEffectEdgeType, const SkRRect&);
commit-bot@chromium.orgc2f78242014-02-19 15:18:05 +000023};
24
commit-bot@chromium.orgc2f78242014-02-19 15:18:05 +000025#endif