• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2018 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 GrFPArgs_DEFINED
9 #define GrFPArgs_DEFINED
10 
11 #include "include/core/SkMatrix.h"
12 #include "src/shaders/SkShaderBase.h"
13 
14 class GrColorInfo;
15 class GrRecordingContext;
16 class SkMatrixProvider;
17 class SkSurfaceProps;
18 
19 struct GrFPArgs {
GrFPArgsGrFPArgs20     GrFPArgs(GrRecordingContext* context,
21              const GrColorInfo* dstColorInfo,
22              const SkSurfaceProps& surfaceProps)
23             : fContext(context), fDstColorInfo(dstColorInfo), fSurfaceProps(surfaceProps) {
24         SkASSERT(fContext);
25     }
26 
27     GrRecordingContext* fContext;
28 
29     const GrColorInfo* fDstColorInfo;
30 
31     const SkSurfaceProps& fSurfaceProps;
32 };
33 
34 #endif
35