GrDrawAtlasOp.h 831 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright 2015 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 GrDrawAtlasOp_DEFINED
  8. #define GrDrawAtlasOp_DEFINED
  9. #include "include/core/SkRefCnt.h"
  10. #include "include/private/GrTypesPriv.h"
  11. class GrDrawOp;
  12. class GrPaint;
  13. class GrRecordingContext;
  14. class SkMatrix;
  15. namespace GrDrawAtlasOp {
  16. std::unique_ptr<GrDrawOp> Make(GrRecordingContext*,
  17. GrPaint&&,
  18. const SkMatrix& viewMatrix,
  19. GrAAType,
  20. int spriteCount,
  21. const SkRSXform* xforms,
  22. const SkRect* rects,
  23. const SkColor* colors);
  24. };
  25. #endif