| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 */ | 186 */ |
| 187 GrRenderTarget* getRenderTarget() const { return fRenderTarget.get(); } | 187 GrRenderTarget* getRenderTarget() const { return fRenderTarget.get(); } |
| 188 | 188 |
| 189 /** | 189 /** |
| 190 * Sets the render-target used at the next drawing call | 190 * Sets the render-target used at the next drawing call |
| 191 * | 191 * |
| 192 * @param target The render target to set. | 192 * @param target The render target to set. |
| 193 */ | 193 */ |
| 194 void setRenderTarget(GrRenderTarget* target) { fRenderTarget.reset(SkSafeRef
(target)); } | 194 void setRenderTarget(GrRenderTarget* target) { fRenderTarget.reset(SkSafeRef
(target)); } |
| 195 | 195 |
| 196 /** | |
| 197 * Returns whether the rasterizer and stencil test (if any) will run at a hi
gher sample rate | |
| 198 * than the color buffer. In is scenario, the higher sample rate is resolved
during blending. | |
| 199 */ | |
| 200 bool hasMixedSamples() const { | |
| 201 return fRenderTarget->hasMixedSamples() && | |
| 202 (this->isHWAntialias() || !fStencilSettings.isDisabled()); | |
| 203 } | |
| 204 | |
| 205 /// @} | 196 /// @} |
| 206 | 197 |
| 207 /////////////////////////////////////////////////////////////////////////// | 198 /////////////////////////////////////////////////////////////////////////// |
| 208 /// @name Stencil | 199 /// @name Stencil |
| 209 //// | 200 //// |
| 210 | 201 |
| 211 const GrStencilSettings& getStencil() const { return fStencilSettings; } | 202 const GrStencilSettings& getStencil() const { return fStencilSettings; } |
| 212 | 203 |
| 213 /** | 204 /** |
| 214 * Sets the stencil settings to use for the next draw. | 205 * Sets the stencil settings to use for the next draw. |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 mutable SkAutoTUnref<const GrXPFactory> fXPFactory; | 376 mutable SkAutoTUnref<const GrXPFactory> fXPFactory; |
| 386 FragmentProcessorArray fColorFragmentProcessors; | 377 FragmentProcessorArray fColorFragmentProcessors; |
| 387 FragmentProcessorArray fCoverageFragmentProcessors; | 378 FragmentProcessorArray fCoverageFragmentProcessors; |
| 388 GrClip fClip; | 379 GrClip fClip; |
| 389 | 380 |
| 390 friend class GrPipeline; | 381 friend class GrPipeline; |
| 391 friend class GrDrawTarget; | 382 friend class GrDrawTarget; |
| 392 }; | 383 }; |
| 393 | 384 |
| 394 #endif | 385 #endif |
| OLD | NEW |