From c633abbb342e3af0e56382e8cb7e7d9fed71e237 Mon Sep 17 00:00:00 2001 From: csmartdalton Date: Tue, 1 Nov 2016 08:55:55 -0700 Subject: Remove GrStencilSettings from GrPipeline Updates the GrPipeline to have user stencil settings instead of actual settings. This allows us to further defer creating and attaching a stencil buffer. This change is a partial step. The ultimate goal is to attach the stencil buffer and create the stencil settings during render target flush, but for the sake of keeping this CL smaller, we create the stencil settings right before use for now. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2468653002 Review-Url: https://codereview.chromium.org/2468653002 --- src/gpu/GrRenderTargetPriv.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gpu/GrRenderTargetPriv.h') diff --git a/src/gpu/GrRenderTargetPriv.h b/src/gpu/GrRenderTargetPriv.h index 922d9b3071..19e72637f3 100644 --- a/src/gpu/GrRenderTargetPriv.h +++ b/src/gpu/GrRenderTargetPriv.h @@ -32,10 +32,10 @@ public: int numStencilBits() const; - // Finds a render target's multisample specs. The stencil settings are only needed in case the - // info isn't cached and we need to flush the draw state in order to query it. They are not - // expected to affect the multisample information itself. - const GrGpu::MultisampleSpecs& getMultisampleSpecs(const GrStencilSettings& stencil) const; + // Finds a render target's multisample specs. The pipeline is only needed in case the info isn't + // cached and we need to flush the draw state in order to query it. The pipeline is not expected + // to affect the multisample information itself. + const GrGpu::MultisampleSpecs& getMultisampleSpecs(const GrPipeline&) const; typedef GrRenderTarget::Flags Flags; -- cgit v1.2.3