Home | History | Annotate | Download | only in effects
      1 /*
      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 
     11 #include "GrTypes.h"
     12 #include "GrTypesPriv.h"
     13 #include "SkRefCnt.h"
     14 
     15 class GrFragmentProcessor;
     16 class GrProcessor;
     17 class SkRRect;
     18 
     19 namespace GrRRectEffect {
     20     /**
     21      * Creates an effect that performs anti-aliased clipping against a SkRRect. It doesn't support
     22      * all varieties of SkRRect so the caller must check for a nullptr return.
     23      */
     24     sk_sp<GrFragmentProcessor> Make(GrPrimitiveEdgeType, const SkRRect&);
     25 };
     26 
     27 #endif
     28