aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTargetPriv.h
diff options
context:
space:
mode:
authorGravatar csmartdalton <csmartdalton@google.com>2016-11-01 08:55:55 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-11-01 08:55:55 -0700
commitc633abbb342e3af0e56382e8cb7e7d9fed71e237 (patch)
treefe933b42146870a18aae2d892d67f45243460aa8 /src/gpu/GrRenderTargetPriv.h
parent7bb9301b161fce4cccee0cb43661b9f65d71dabb (diff)
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
Diffstat (limited to 'src/gpu/GrRenderTargetPriv.h')
-rw-r--r--src/gpu/GrRenderTargetPriv.h8
1 files changed, 4 insertions, 4 deletions
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;