Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Unified Diff: src/gpu/GrStencilAndCoverPathRenderer.cpp

Issue 938383004: Dynamically create stencil buffer when needed. (Closed) Base URL: https://skia.googlesource.com/skia.git@bigstencil
Patch Set: wrap Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrStencilAndCoverPathRenderer.cpp
diff --git a/src/gpu/GrStencilAndCoverPathRenderer.cpp b/src/gpu/GrStencilAndCoverPathRenderer.cpp
index 0cef788355b0603a434dc56a5ff2d8624613aa7e..aed1743af22216864a2aa2382a2ea724cc0c82a9 100644
--- a/src/gpu/GrStencilAndCoverPathRenderer.cpp
+++ b/src/gpu/GrStencilAndCoverPathRenderer.cpp
@@ -12,6 +12,8 @@
#include "GrDrawTargetCaps.h"
#include "GrGpu.h"
#include "GrPath.h"
+#include "GrRenderTarget.h"
+#include "GrRenderTargetPriv.h"
#include "SkStrokeRec.h"
/*
@@ -58,7 +60,6 @@ bool GrStencilAndCoverPathRenderer::canDrawPath(const GrDrawTarget* target,
bool antiAlias) const {
return !stroke.isHairlineStyle() &&
!antiAlias && // doesn't do per-path AA, relies on the target having MSAA
- pipelineBuilder->getRenderTarget()->getStencilBuffer() &&
pipelineBuilder->getStencil().isDisabled();
}

Powered by Google App Engine
This is Rietveld 408576698