Mike Reed | e3429e6 | 2018-01-19 11:43:34 -0500 | [diff] [blame] | 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 "SkFilterQuality.h" |
| 12 | |
| 13 | class SkMatrix; |
| 14 | class GrContext; |
| 15 | class GrColorSpaceInfo; |
| 16 | |
| 17 | struct GrFPArgs { |
Mike Reed | e3429e6 | 2018-01-19 11:43:34 -0500 | [diff] [blame] | 18 | GrFPArgs(GrContext* context, |
| 19 | const SkMatrix* viewMatrix, |
| 20 | const SkMatrix* localMatrix, |
| 21 | SkFilterQuality filterQuality, |
| 22 | const GrColorSpaceInfo* dstColorSpaceInfo) |
| 23 | : fContext(context) |
| 24 | , fViewMatrix(viewMatrix) |
| 25 | , fLocalMatrix(localMatrix) |
| 26 | , fFilterQuality(filterQuality) |
| 27 | , fDstColorSpaceInfo(dstColorSpaceInfo) {} |
| 28 | |
Mike Reed | 3bc266b | 2018-01-20 22:24:41 +0000 | [diff] [blame] | 29 | GrFPArgs(GrContext* context, |
| 30 | const SkMatrix* viewMatrix, |
| 31 | SkFilterQuality filterQuality, |
| 32 | const GrColorSpaceInfo* dstColorSpaceInfo) |
| 33 | : fContext(context) |
| 34 | , fViewMatrix(viewMatrix) |
| 35 | , fLocalMatrix(nullptr) |
| 36 | , fFilterQuality(filterQuality) |
| 37 | , fDstColorSpaceInfo(dstColorSpaceInfo) {} |
| 38 | |
Mike Reed | e3429e6 | 2018-01-19 11:43:34 -0500 | [diff] [blame] | 39 | GrContext* fContext; |
| 40 | const SkMatrix* fViewMatrix; |
| 41 | const SkMatrix* fLocalMatrix; |
| 42 | SkFilterQuality fFilterQuality; |
| 43 | const GrColorSpaceInfo* fDstColorSpaceInfo; |
| 44 | }; |
| 45 | |
| 46 | #endif |
| 47 | |