GrRRectEffect.h 710 B

1234567891011121314151617181920212223242526272829
  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. #ifndef GrRRectEffect_DEFINED
  8. #define GrRRectEffect_DEFINED
  9. #include "include/core/SkRefCnt.h"
  10. #include "include/gpu/GrTypes.h"
  11. #include "include/private/GrTypesPriv.h"
  12. class GrFragmentProcessor;
  13. class GrShaderCaps;
  14. class GrProcessor;
  15. class SkRRect;
  16. namespace GrRRectEffect {
  17. /**
  18. * Creates an effect that performs anti-aliased clipping against a SkRRect. It doesn't support
  19. * all varieties of SkRRect so the caller must check for a nullptr return.
  20. */
  21. std::unique_ptr<GrFragmentProcessor> Make(GrClipEdgeType, const SkRRect&, const GrShaderCaps&);
  22. };
  23. #endif