Debian Codegraph @

src/core/SkEffectPriv.h

raw
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 #include "include/core/SkRect.h"
14
15 class SkArenaAlloc;
16 class SkColorSpace;
17 class SkRasterPipeline;
18 class SkSurfaceProps;
19
20 // Passed to effects that will add stages to rasterpipeline
21 struct SkStageRec {
22 SkRasterPipeline* fPipeline;
23 SkArenaAlloc* fAlloc;
24 SkColorType fDstColorType;
25 SkColorSpace* fDstCS; // may be nullptr
26 SkColor4f fPaintColor;
27 const SkSurfaceProps& fSurfaceProps;
28 // The device-space bounding box of the geometry being drawn.
29 // An empty value can be used when it is expensive to compute,
30 // in which case a heuristic will be used if necessary.
31 SkRect fDstBounds;
32 };
33
34 #endif // SkEffectPriv_DEFINED