| 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 10 matching lines...) Expand all Loading... |
| 21 class GrBatch; | 21 class GrBatch; |
| 22 class GrDeviceCoordTexture; | 22 class GrDeviceCoordTexture; |
| 23 class GrPipelineBuilder; | 23 class GrPipelineBuilder; |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * Class that holds an optimized version of a GrPipelineBuilder. It is meant to
be an immutable | 26 * Class that holds an optimized version of a GrPipelineBuilder. It is meant to
be an immutable |
| 27 * class, and contains all data needed to set the state for a gpu draw. | 27 * class, and contains all data needed to set the state for a gpu draw. |
| 28 */ | 28 */ |
| 29 class GrPipeline { | 29 class GrPipeline { |
| 30 public: | 30 public: |
| 31 SK_DECLARE_INST_COUNT(GrPipeline) | 31 |
| 32 | 32 |
| 33 GrPipeline(const GrPipelineBuilder&, | 33 GrPipeline(const GrPipelineBuilder&, |
| 34 const GrProcOptInfo& colorPOI, | 34 const GrProcOptInfo& colorPOI, |
| 35 const GrProcOptInfo& coveragePOI, | 35 const GrProcOptInfo& coveragePOI, |
| 36 const GrCaps&, | 36 const GrCaps&, |
| 37 const GrScissorState&, | 37 const GrScissorState&, |
| 38 const GrXferProcessor::DstTexture*); | 38 const GrXferProcessor::DstTexture*); |
| 39 | 39 |
| 40 /* | 40 /* |
| 41 * Returns true if these pipelines are equivalent. | 41 * Returns true if these pipelines are equivalent. |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 // This function is equivalent to the offset into fFragmentStages where cove
rage stages begin. | 140 // This function is equivalent to the offset into fFragmentStages where cove
rage stages begin. |
| 141 int fNumColorStages; | 141 int fNumColorStages; |
| 142 | 142 |
| 143 GrProgramDesc fDesc; | 143 GrProgramDesc fDesc; |
| 144 | 144 |
| 145 typedef SkRefCnt INHERITED; | 145 typedef SkRefCnt INHERITED; |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 #endif | 148 #endif |
| OLD | NEW |