| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 * | 203 * |
| 204 * @param target The render target to set. | 204 * @param target The render target to set. |
| 205 */ | 205 */ |
| 206 void setRenderTarget(GrRenderTarget* target) { fRenderTarget.reset(SkSafeRef
(target)); } | 206 void setRenderTarget(GrRenderTarget* target) { fRenderTarget.reset(SkSafeRef
(target)); } |
| 207 | 207 |
| 208 /** | 208 /** |
| 209 * Returns whether the rasterizer and stencil test (if any) will run at a hi
gher sample rate | 209 * Returns whether the rasterizer and stencil test (if any) will run at a hi
gher sample rate |
| 210 * than the color buffer. In is scenario, the higher sample rate is resolved
during blending. | 210 * than the color buffer. In is scenario, the higher sample rate is resolved
during blending. |
| 211 */ | 211 */ |
| 212 bool hasMixedSamples() const { | 212 bool hasMixedSamples() const { |
| 213 return this->isHWAntialias() && !fRenderTarget->isMultisampled(); | 213 return this->isHWAntialias() && !fRenderTarget->isUnifiedMultisampled(); |
| 214 } | 214 } |
| 215 | 215 |
| 216 /// @} | 216 /// @} |
| 217 | 217 |
| 218 /////////////////////////////////////////////////////////////////////////// | 218 /////////////////////////////////////////////////////////////////////////// |
| 219 /// @name Stencil | 219 /// @name Stencil |
| 220 //// | 220 //// |
| 221 | 221 |
| 222 const GrStencilSettings& getStencil() const { return fStencilSettings; } | 222 const GrStencilSettings& getStencil() const { return fStencilSettings; } |
| 223 | 223 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 mutable GrProcOptInfo fCoverageProcInfo; | 444 mutable GrProcOptInfo fCoverageProcInfo; |
| 445 mutable bool fColorProcInfoValid; | 445 mutable bool fColorProcInfoValid; |
| 446 mutable bool fCoverageProcInfoValid; | 446 mutable bool fCoverageProcInfoValid; |
| 447 mutable GrColor fColorCache; | 447 mutable GrColor fColorCache; |
| 448 mutable GrColor fCoverageCache; | 448 mutable GrColor fCoverageCache; |
| 449 | 449 |
| 450 friend class GrPipeline; | 450 friend class GrPipeline; |
| 451 }; | 451 }; |
| 452 | 452 |
| 453 #endif | 453 #endif |
| OLD | NEW |