| 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 GrPipelineBuilder_DEFINED | 8 #ifndef GrPipelineBuilder_DEFINED |
| 9 #define GrPipelineBuilder_DEFINED | 9 #define GrPipelineBuilder_DEFINED |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class GrDrawBatch; | 24 class GrDrawBatch; |
| 25 class GrCaps; | 25 class GrCaps; |
| 26 class GrPaint; | 26 class GrPaint; |
| 27 class GrTexture; | 27 class GrTexture; |
| 28 | 28 |
| 29 class GrPipelineBuilder : public SkNoncopyable { | 29 class GrPipelineBuilder : public SkNoncopyable { |
| 30 public: | 30 public: |
| 31 GrPipelineBuilder(); | 31 GrPipelineBuilder(); |
| 32 | 32 |
| 33 /** | 33 /** |
| 34 * Initializes the GrPipelineBuilder based on a GrPaint, render target, and
clip. Note | 34 * Initializes the GrPipelineBuilder based on a GrPaint, MSAA availability.
Note |
| 35 * that GrPipelineBuilder encompasses more than GrPaint. Aspects of GrPipeli
neBuilder that have | 35 * that GrPipelineBuilder encompasses more than GrPaint. Aspects of GrPipeli
neBuilder that have |
| 36 * no GrPaint equivalents are set to default values with the exception of ve
rtex attribute state | 36 * no GrPaint equivalents are set to default values with the exception of ve
rtex attribute state |
| 37 * which is unmodified by this function and clipping which will be enabled. | 37 * which is unmodified by this function and clipping which will be enabled. |
| 38 */ | 38 */ |
| 39 GrPipelineBuilder(const GrPaint&, GrRenderTarget*); | 39 GrPipelineBuilder(const GrPaint&, bool targetHasUnifiedMultisampling); |
| 40 | 40 |
| 41 virtual ~GrPipelineBuilder(); | 41 virtual ~GrPipelineBuilder(); |
| 42 | 42 |
| 43 /////////////////////////////////////////////////////////////////////////// | 43 /////////////////////////////////////////////////////////////////////////// |
| 44 /// @name Fragment Processors | 44 /// @name Fragment Processors |
| 45 /// | 45 /// |
| 46 /// GrFragmentProcessors are used to compute per-pixel color and per-pixel f
ractional coverage. | 46 /// GrFragmentProcessors are used to compute per-pixel color and per-pixel f
ractional coverage. |
| 47 /// There are two chains of FPs, one for color and one for coverage. The fir
st FP in each | 47 /// There are two chains of FPs, one for color and one for coverage. The fir
st FP in each |
| 48 /// chain gets the initial color/coverage from the GrPrimitiveProcessor. It
computes an output | 48 /// chain gets the initial color/coverage from the GrPrimitiveProcessor. It
computes an output |
| 49 /// color/coverage which is fed to the next FP in the chain. The last color
and coverage FPs | 49 /// color/coverage which is fed to the next FP in the chain. The last color
and coverage FPs |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 DrawFace fDrawFace; | 334 DrawFace fDrawFace; |
| 335 mutable SkAutoTUnref<const GrXPFactory> fXPFactory; | 335 mutable SkAutoTUnref<const GrXPFactory> fXPFactory; |
| 336 FragmentProcessorArray fColorFragmentProcessors; | 336 FragmentProcessorArray fColorFragmentProcessors; |
| 337 FragmentProcessorArray fCoverageFragmentProcessors; | 337 FragmentProcessorArray fCoverageFragmentProcessors; |
| 338 | 338 |
| 339 friend class GrPipeline; | 339 friend class GrPipeline; |
| 340 friend class GrDrawTarget; | 340 friend class GrDrawTarget; |
| 341 }; | 341 }; |
| 342 | 342 |
| 343 #endif | 343 #endif |
| OLD | NEW |