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 8 #ifndef SkEffectPriv_DEFINED 9 #define SkEffectPriv_DEFINED 10 11 #include "include/core/SkImageInfo.h" 12 #include "include/core/SkMatrix.h" 13 14 class SkArenaAlloc; 15 class SkColorSpace; 16 class SkMatrixProvider; 17 class SkPaint; 18 class SkRasterPipeline; 19 class SkSurfaceProps; 20 21 // Passed to effects that will add stages to rasterpipeline 22 struct SkStageRec { 23 SkRasterPipeline* fPipeline; 24 SkArenaAlloc* fAlloc; 25 SkColorType fDstColorType; 26 SkColorSpace* fDstCS; // may be nullptr 27 const SkPaint& fPaint; 28 const SkSurfaceProps& fSurfaceProps; 29 }; 30 31 #endif // SkEffectPriv_DEFINED 32