Chromium Code Reviews| 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 17 matching lines...) Expand all Loading... | |
| 28 class GrTexture; | 28 class GrTexture; |
| 29 | 29 |
| 30 class GrPipelineBuilder : public SkNoncopyable { | 30 class GrPipelineBuilder : public SkNoncopyable { |
| 31 public: | 31 public: |
| 32 GrPipelineBuilder(); | 32 GrPipelineBuilder(); |
| 33 | 33 |
| 34 /** | 34 /** |
| 35 * Initializes the GrPipelineBuilder based on a GrPaint, render target, and clip. Note | 35 * Initializes the GrPipelineBuilder based on a GrPaint, render target, and clip. Note |
| 36 * that GrPipelineBuilder encompasses more than GrPaint. Aspects of GrPipeli neBuilder that have | 36 * that GrPipelineBuilder encompasses more than GrPaint. Aspects of GrPipeli neBuilder that have |
| 37 * no GrPaint equivalents are set to default values with the exception of ve rtex attribute state | 37 * no GrPaint equivalents are set to default values with the exception of ve rtex attribute state |
| 38 * which is unmodified by this function and clipping which will be enabled. | 38 * which is unmodified by this function and clipping which will be enabled. HW antialias will |
| 39 * only be enabled if the paint is antialiased and the render target is unif ied multisampled, or | |
| 40 * if requireHWAA is true. | |
| 39 */ | 41 */ |
| 40 GrPipelineBuilder(const GrPaint&, GrRenderTarget*, const GrClip&); | 42 GrPipelineBuilder(const GrPaint&, GrRenderTarget*, const GrClip&, bool requi reHWAA = false); |
|
bsalomon
2016/04/19 14:57:40
I'm thinking that the GrPB should completely ignor
| |
| 41 | 43 |
| 42 virtual ~GrPipelineBuilder(); | 44 virtual ~GrPipelineBuilder(); |
| 43 | 45 |
| 44 /////////////////////////////////////////////////////////////////////////// | 46 /////////////////////////////////////////////////////////////////////////// |
| 45 /// @name Fragment Processors | 47 /// @name Fragment Processors |
| 46 /// | 48 /// |
| 47 /// GrFragmentProcessors are used to compute per-pixel color and per-pixel f ractional coverage. | 49 /// GrFragmentProcessors are used to compute per-pixel color and per-pixel f ractional coverage. |
| 48 /// There are two chains of FPs, one for color and one for coverage. The fir st FP in each | 50 /// There are two chains of FPs, one for color and one for coverage. The fir st FP in each |
| 49 /// chain gets the initial color/coverage from the GrPrimitiveProcessor. It computes an output | 51 /// chain gets the initial color/coverage from the GrPrimitiveProcessor. It computes an output |
| 50 /// color/coverage which is fed to the next FP in the chain. The last color and coverage FPs | 52 /// color/coverage which is fed to the next FP in the chain. The last color and coverage FPs |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 385 mutable SkAutoTUnref<const GrXPFactory> fXPFactory; | 387 mutable SkAutoTUnref<const GrXPFactory> fXPFactory; |
| 386 FragmentProcessorArray fColorFragmentProcessors; | 388 FragmentProcessorArray fColorFragmentProcessors; |
| 387 FragmentProcessorArray fCoverageFragmentProcessors; | 389 FragmentProcessorArray fCoverageFragmentProcessors; |
| 388 GrClip fClip; | 390 GrClip fClip; |
| 389 | 391 |
| 390 friend class GrPipeline; | 392 friend class GrPipeline; |
| 391 friend class GrDrawTarget; | 393 friend class GrDrawTarget; |
| 392 }; | 394 }; |
| 393 | 395 |
| 394 #endif | 396 #endif |
| OLD | NEW |