GrRegionOp.h 765 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright 2016 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 GrRegionOp_DEFINED
  8. #define GrRegionOp_DEFINED
  9. #include "include/private/GrTypesPriv.h"
  10. class GrDrawOp;
  11. class GrRecordingContext;
  12. class SkMatrix;
  13. class SkRegion;
  14. class GrPaint;
  15. struct GrUserStencilSettings;
  16. namespace GrRegionOp {
  17. /** GrAAType must be kNone or kMSAA. */
  18. std::unique_ptr<GrDrawOp> Make(GrRecordingContext*,
  19. GrPaint&&,
  20. const SkMatrix& viewMatrix,
  21. const SkRegion&,
  22. GrAAType,
  23. const GrUserStencilSettings* stencilSettings = nullptr);
  24. }
  25. #endif