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

Unified Diff: src/gpu/GrContext.cpp

Issue 1407883004: Remove GrPipelineBuilder from getPathRenderer call (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 04e1b8d20337301f8046284497c1936aade2874c..a3d058d833dbcc87d7c49b7f4a4fa9812978b4a8 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -541,12 +541,13 @@ void GrContext::flushSurfaceWrites(GrSurface* surface) {
* Due to its expense, the software path renderer has split out so it can
* can be individually allowed/disallowed via the "allowSW" boolean.
*/
-GrPathRenderer* GrContext::getPathRenderer(const GrPipelineBuilder& pipelineBuilder,
- const SkMatrix& viewMatrix,
+GrPathRenderer* GrContext::getPathRenderer(const SkMatrix& viewMatrix,
const SkPath& path,
const GrStrokeInfo& stroke,
bool allowSW,
GrPathRendererChain::DrawType drawType,
+ bool stencilIsDisabled,
+ bool stencilBufferIsMSAA,
GrPathRendererChain::StencilSupport* stencilSupport) {
if (!fPathRendererChain) {
@@ -554,11 +555,12 @@ GrPathRenderer* GrContext::getPathRenderer(const GrPipelineBuilder& pipelineBuil
}
GrPathRenderer* pr = fPathRendererChain->getPathRenderer(this->caps()->shaderCaps(),
- pipelineBuilder,
viewMatrix,
path,
stroke,
drawType,
+ stencilIsDisabled,
+ stencilBufferIsMSAA,
stencilSupport);
if (!pr && allowSW) {

Powered by Google App Engine
This is Rietveld 408576698