xref: /aosp_15_r20/external/skia/src/core/SkEffectPriv.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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/SkColor.h"
12 #include "include/core/SkColorType.h"
13 
14 class SkArenaAlloc;
15 class SkColorSpace;
16 class SkRasterPipeline;
17 class SkSurfaceProps;
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     SkColor4f               fPaintColor;
26     const SkSurfaceProps&   fSurfaceProps;
27 };
28 
29 #endif // SkEffectPriv_DEFINED
30