aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/windowrectangles.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-09-21 12:00:26 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-21 16:42:41 +0000
commitc0192e346ccdcacedb4d4f1f53a85caa29b97a6f (patch)
tree34f79cc8cec58e1413c1e0c585f7222ffec0e0ad /gm/windowrectangles.cpp
parent5fdbb8a8a76ec5c900bd373239bf4d42e33fb5a5 (diff)
Remove pre-attachment of stencil buffers
Change-Id: I4ef555a2b36cf3a0ec74e0ecf7e8ab4f8779df3e Reviewed-on: https://skia-review.googlesource.com/49740 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'gm/windowrectangles.cpp')
-rw-r--r--gm/windowrectangles.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/gm/windowrectangles.cpp b/gm/windowrectangles.cpp
index 22bc669212..b4f6562985 100644
--- a/gm/windowrectangles.cpp
+++ b/gm/windowrectangles.cpp
@@ -207,8 +207,7 @@ void WindowRectanglesMaskGM::visualizeAlphaMask(GrContext* ctx, GrRenderTargetCo
kCoverRect.width() + padRight,
kCoverRect.height() + padBottom,
kAlpha_8_GrPixelConfig, nullptr));
- if (!maskRTC ||
- !ctx->resourceProvider()->attachStencilAttachment(maskRTC->accessRenderTarget())) {
+ if (!maskRTC) {
return;
}
@@ -235,10 +234,6 @@ void WindowRectanglesMaskGM::visualizeAlphaMask(GrContext* ctx, GrRenderTargetCo
void WindowRectanglesMaskGM::visualizeStencilMask(GrContext* ctx, GrRenderTargetContext* rtc,
const GrReducedClip& reducedClip,
GrPaint&& paint) {
- if (!ctx->resourceProvider()->attachStencilAttachment(rtc->accessRenderTarget())) {
- return;
- }
-
// Draw a checker pattern into the stencil buffer so we can visualize the regions left untouched
// by the clip mask generation.
this->stencilCheckerboard(rtc, false);