| 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 27 matching lines...) Expand all Loading... |
| 38 } | 38 } |
| 39 | 39 |
| 40 virtual ~GrPipelineBuilder(); | 40 virtual ~GrPipelineBuilder(); |
| 41 | 41 |
| 42 /** | 42 /** |
| 43 * Initializes the GrPipelineBuilder based on a GrPaint, view matrix and ren
der target. Note | 43 * Initializes the GrPipelineBuilder based on a GrPaint, view matrix and ren
der target. Note |
| 44 * that GrPipelineBuilder encompasses more than GrPaint. Aspects of GrPipeli
neBuilder that have | 44 * that GrPipelineBuilder encompasses more than GrPaint. Aspects of GrPipeli
neBuilder that have |
| 45 * no GrPaint equivalents are set to default values with the exception of ve
rtex attribute state | 45 * no GrPaint equivalents are set to default values with the exception of ve
rtex attribute state |
| 46 * which is unmodified by this function and clipping which will be enabled. | 46 * which is unmodified by this function and clipping which will be enabled. |
| 47 */ | 47 */ |
| 48 void setFromPaint(const GrPaint&, GrRenderTarget*, const GrClip*); | 48 void setFromPaint(const GrPaint&, GrRenderTarget*, const GrClip&); |
| 49 | 49 |
| 50 /// @} | 50 /// @} |
| 51 | 51 |
| 52 /** | 52 /** |
| 53 * This function returns true if the render target destination pixel values
will be read for | 53 * This function returns true if the render target destination pixel values
will be read for |
| 54 * blending during draw. | 54 * blending during draw. |
| 55 */ | 55 */ |
| 56 bool willBlendWithDst(const GrPrimitiveProcessor*) const; | 56 bool willBlendWithDst(const GrPrimitiveProcessor*) const; |
| 57 | 57 |
| 58 /////////////////////////////////////////////////////////////////////////// | 58 /////////////////////////////////////////////////////////////////////////// |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 mutable GrProcOptInfo fCoverageProcInfo; | 442 mutable GrProcOptInfo fCoverageProcInfo; |
| 443 mutable bool fColorProcInfoValid; | 443 mutable bool fColorProcInfoValid; |
| 444 mutable bool fCoverageProcInfoValid; | 444 mutable bool fCoverageProcInfoValid; |
| 445 mutable GrColor fColorCache; | 445 mutable GrColor fColorCache; |
| 446 mutable GrColor fCoverageCache; | 446 mutable GrColor fCoverageCache; |
| 447 | 447 |
| 448 friend class GrPipeline; | 448 friend class GrPipeline; |
| 449 }; | 449 }; |
| 450 | 450 |
| 451 #endif | 451 #endif |
| OLD | NEW |