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 SkPaint; |
17 | class SkRasterPipeline; |
18 | |
19 | // Passed to effects that will add stages to rasterpipeline |
20 | struct SkStageRec { |
21 | SkRasterPipeline* fPipeline; |
22 | SkArenaAlloc* fAlloc; |
23 | SkColorType fDstColorType; |
24 | SkColorSpace* fDstCS; // may be nullptr |
25 | const SkPaint& fPaint; |
26 | const SkMatrix* fLocalM; // may be nullptr |
27 | const SkMatrix fCTM; |
28 | }; |
29 | |
30 | #endif // SkEffectPriv_DEFINED |
31 |