GrOvalEffect.h 578 B

123456789101112131415161718192021222324252627
  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 GrOvalEffect_DEFINED
  8. #define GrOvalEffect_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. struct SkRect;
  15. namespace GrOvalEffect {
  16. /**
  17. * Creates an effect that performs clipping against an oval.
  18. */
  19. std::unique_ptr<GrFragmentProcessor> Make(GrClipEdgeType, const SkRect&, const GrShaderCaps&);
  20. };
  21. #endif