OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 GrPipeline_DEFINED | 8 #ifndef GrPipeline_DEFINED |
9 #define GrPipeline_DEFINED | 9 #define GrPipeline_DEFINED |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 struct GrPipelineOptimizations { | 34 struct GrPipelineOptimizations { |
35 GrProcOptInfo fColorPOI; | 35 GrProcOptInfo fColorPOI; |
36 GrProcOptInfo fCoveragePOI; | 36 GrProcOptInfo fCoveragePOI; |
37 GrBatchToXPOverrides fOverrides; | 37 GrBatchToXPOverrides fOverrides; |
38 }; | 38 }; |
39 | 39 |
40 /** | 40 /** |
41 * Class that holds an optimized version of a GrPipelineBuilder. It is meant to
be an immutable | 41 * Class that holds an optimized version of a GrPipelineBuilder. It is meant to
be an immutable |
42 * class, and contains all data needed to set the state for a gpu draw. | 42 * class, and contains all data needed to set the state for a gpu draw. |
43 */ | 43 */ |
44 class GrPipeline : public GrNonAtomicRef { | 44 class GrPipeline : public GrNonAtomicRef<GrPipeline> { |
45 public: | 45 public: |
46 /////////////////////////////////////////////////////////////////////////// | 46 /////////////////////////////////////////////////////////////////////////// |
47 /// @name Creation | 47 /// @name Creation |
48 | 48 |
49 struct CreateArgs { | 49 struct CreateArgs { |
50 const GrPipelineBuilder* fPipelineBuilder; | 50 const GrPipelineBuilder* fPipelineBuilder; |
51 const GrCaps* fCaps; | 51 const GrCaps* fCaps; |
52 GrPipelineOptimizations fOpts; | 52 GrPipelineOptimizations fOpts; |
53 const GrScissorState* fScissor; | 53 const GrScissorState* fScissor; |
54 GrXferProcessor::DstTexture fDstTexture; | 54 GrXferProcessor::DstTexture fDstTexture; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 bool fReadsFragPosition; | 203 bool fReadsFragPosition; |
204 bool fIgnoresCoverage; | 204 bool fIgnoresCoverage; |
205 | 205 |
206 // This value is also the index in fFragmentProcessors where coverage proces
sors begin. | 206 // This value is also the index in fFragmentProcessors where coverage proces
sors begin. |
207 int fNumColorProcessors; | 207 int fNumColorProcessors; |
208 | 208 |
209 typedef SkRefCnt INHERITED; | 209 typedef SkRefCnt INHERITED; |
210 }; | 210 }; |
211 | 211 |
212 #endif | 212 #endif |
OLD | NEW |