blob: d3901f3933860396ed9ec34969284cac457bbe35 [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
joshualitteb2a6762014-12-04 11:35:33 -080014class GrFragmentProcessor;
joshualittb0a8a372014-09-23 09:50:21 -070015class GrProcessor;
commit-bot@chromium.orge5280892014-02-21 17:52:29 +000016class SkRRect;
commit-bot@chromium.orgc2f78242014-02-19 15:18:05 +000017
commit-bot@chromium.orge5280892014-02-21 17:52:29 +000018namespace GrRRectEffect {
19 /**
20 * Creates an effect that performs anti-aliased clipping against a SkRRect. It doesn't support
21 * all varieties of SkRRect so the caller must check for a NULL return.
22 */
joshualittb0a8a372014-09-23 09:50:21 -070023 GrFragmentProcessor* Create(GrPrimitiveEdgeType, const SkRRect&);
commit-bot@chromium.orgc2f78242014-02-19 15:18:05 +000024};
25
commit-bot@chromium.orgc2f78242014-02-19 15:18:05 +000026#endif