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

Unified Diff: src/gpu/GrPathRendererChain.cpp

Issue 23926019: Stateful PathRenderer implementation (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: add assert & patch for missing AutoPathClear Created 6 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
« no previous file with comments | « src/gpu/GrPathRenderer.h ('k') | src/gpu/GrSoftwarePathRenderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrPathRendererChain.cpp
===================================================================
--- src/gpu/GrPathRendererChain.cpp (revision 13379)
+++ src/gpu/GrPathRendererChain.cpp (working copy)
@@ -35,6 +35,7 @@
const SkStrokeRec& stroke,
const GrDrawTarget* target,
DrawType drawType,
+ SkPath::FillType fillType,
StencilSupport* stencilSupport) {
if (!fInit) {
this->init();
@@ -56,12 +57,11 @@
minStencilSupport = GrPathRenderer::kNoSupport_StencilSupport;
}
-
for (int i = 0; i < fChain.count(); ++i) {
- if (fChain[i]->canDrawPath(path, stroke, target, antiAlias)) {
+ fChain[i]->setPath(path, fillType);
+ if (fChain[i]->canDrawPath(stroke, target, antiAlias)) {
if (GrPathRenderer::kNoSupport_StencilSupport != minStencilSupport) {
- GrPathRenderer::StencilSupport support = fChain[i]->getStencilSupport(path,
- stroke,
+ GrPathRenderer::StencilSupport support = fChain[i]->getStencilSupport(stroke,
target);
if (support < minStencilSupport) {
continue;
@@ -71,6 +71,7 @@
}
return fChain[i];
}
+ fChain[i]->resetPath();
}
return NULL;
}
« no previous file with comments | « src/gpu/GrPathRenderer.h ('k') | src/gpu/GrSoftwarePathRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698