michael@0: /* michael@0: * Copyright 2014 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: #ifndef GrRRectEffect_DEFINED michael@0: #define GrRRectEffect_DEFINED michael@0: michael@0: #include "GrTypes.h" michael@0: #include "GrTypesPriv.h" michael@0: michael@0: class GrEffectRef; michael@0: class SkRRect; michael@0: michael@0: namespace GrRRectEffect { michael@0: /** michael@0: * Creates an effect that performs anti-aliased clipping against a SkRRect. It doesn't support michael@0: * all varieties of SkRRect so the caller must check for a NULL return. michael@0: */ michael@0: GrEffectRef* Create(GrEffectEdgeType, const SkRRect&); michael@0: }; michael@0: michael@0: #endif