OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrProcOptInfo_DEFINED | 8 #ifndef GrProcOptInfo_DEFINED |
9 #define GrProcOptInfo_DEFINED | 9 #define GrProcOptInfo_DEFINED |
10 | 10 |
11 #include "GrColor.h" | 11 #include "GrColor.h" |
12 #include "GrInvariantOutput.h" | 12 #include "GrInvariantOutput.h" |
13 #include "GrStagedProcessor.h" | |
14 | 13 |
15 class GrBatch; | 14 class GrBatch; |
| 15 class GrFragmentStage; |
16 class GrFragmentProcessor; | 16 class GrFragmentProcessor; |
17 class GrPrimitiveProcessor; | 17 class GrPrimitiveProcessor; |
18 class GrProcessor; | 18 class GrProcessor; |
19 | 19 |
20 /** | 20 /** |
21 * GrProcOptInfo gathers invariant data from a set of processor stages.It is use
d to recognize | 21 * GrProcOptInfo gathers invariant data from a set of processor stages.It is use
d to recognize |
22 * optimizations related to eliminating stages and vertex attributes that aren't
necessary for a | 22 * optimizations related to eliminating stages and vertex attributes that aren't
necessary for a |
23 * draw. | 23 * draw. |
24 */ | 24 */ |
25 class GrProcOptInfo { | 25 class GrProcOptInfo { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 void internalCalc(const GrFragmentStage*, int stagecount, bool initWillReadF
ragPosition); | 91 void internalCalc(const GrFragmentStage*, int stagecount, bool initWillReadF
ragPosition); |
92 | 92 |
93 GrInvariantOutput fInOut; | 93 GrInvariantOutput fInOut; |
94 int fFirstEffectStageIndex; | 94 int fFirstEffectStageIndex; |
95 bool fInputColorIsUsed; | 95 bool fInputColorIsUsed; |
96 GrColor fInputColor; | 96 GrColor fInputColor; |
97 bool fReadsFragPosition; | 97 bool fReadsFragPosition; |
98 }; | 98 }; |
99 | 99 |
100 #endif | 100 #endif |
OLD | NEW |