aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-03-20 06:43:11 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-20 06:43:11 -0700
commitca75ea871e40cc4ebd19bfa26a096bec19fd464e (patch)
treeef12815aeac206b50981a0456424ef30a67b5637 /src
parent8c874eee943bdea0fab5b4d2707083c863e37c55 (diff)
Disable sharing of stencil buffers across differently sized rendertargets
Due to revertapalooza, stencil buffers shared across differently sized rendertargets aren't getting cleared correctly. This CL disables the sharing until the clearing issues can be remedied. Note that stencil buffers should still be shared between identically sized render targets and should still be lazily allocated. Review URL: https://codereview.chromium.org/1020203002
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrGpu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp
index c4b155a2d4..d7d4ae7fd4 100644
--- a/src/gpu/GrGpu.cpp
+++ b/src/gpu/GrGpu.cpp
@@ -82,10 +82,12 @@ bool GrGpu::attachStencilBufferToRenderTarget(GrRenderTarget* rt) {
int width = rt->width();
int height = rt->height();
+#if 0
if (this->caps()->oversizedStencilSupport()) {
width = SkNextPow2(width);
height = SkNextPow2(height);
}
+#endif
GrStencilBuffer::ComputeSharedStencilBufferKey(width, height, rt->numSamples(), &sbKey);
SkAutoTUnref<GrStencilBuffer> sb(static_cast<GrStencilBuffer*>(