• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
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     const SkPaint&          fPaint;
27     const SkMatrix*         fLocalM;        // may be nullptr
28     const SkMatrixProvider& fMatrixProvider;
29 };
30 
31 #endif // SkEffectPriv_DEFINED
32