SkEffectPriv.h 738 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright 2019 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 SkEffectPriv_DEFINED
  8. #define SkEffectPriv_DEFINED
  9. #include "include/core/SkImageInfo.h"
  10. class SkArenaAlloc;
  11. class SkColorSpace;
  12. class SkMatrix;
  13. class SkPaint;
  14. class SkRasterPipeline;
  15. // Passed to effects that will add stages to rasterpipeline
  16. struct SkStageRec {
  17. SkRasterPipeline* fPipeline;
  18. SkArenaAlloc* fAlloc;
  19. SkColorType fDstColorType;
  20. SkColorSpace* fDstCS; // may be nullptr
  21. const SkPaint& fPaint;
  22. const SkMatrix* fLocalM; // may be nullptr
  23. const SkMatrix fCTM;
  24. };
  25. #endif // SkEffectPriv_DEFINED