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