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

Unified Diff: src/gpu/GrDrawContext.cpp

Issue 1087323002: Implement caching in the tessellating path renderer, including strokes. Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: NULL -> nullptr Created 5 years, 4 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/GrClipMaskManager.cpp ('k') | src/gpu/GrPathRenderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawContext.cpp
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp
index 288841c1120abbcb8e61db4d49b447a369d547c3..4087692518cea9dacdd0c0842add3368cdd4f407 100644
--- a/src/gpu/GrDrawContext.cpp
+++ b/src/gpu/GrDrawContext.cpp
@@ -1058,7 +1058,9 @@ void GrDrawContext::drawPath(GrRenderTarget* rt,
const GrPaint& paint,
const SkMatrix& viewMatrix,
const SkPath& path,
- const GrStrokeInfo& strokeInfo) {
+ const GrStrokeInfo& strokeInfo,
+ const SkPath* origSrcPath,
+ const GrStrokeInfo* origStrokeInfo) {
RETURN_IF_ABANDONED
if (path.isEmpty()) {
if (path.isInverseFillType()) {
@@ -1110,7 +1112,7 @@ void GrDrawContext::drawPath(GrRenderTarget* rt,
}
}
this->internalDrawPath(fDrawTarget, &pipelineBuilder, viewMatrix, color, paint.isAntiAlias(),
- path, strokeInfo);
+ path, strokeInfo, origSrcPath, origStrokeInfo);
}
void GrDrawContext::internalDrawPath(GrDrawTarget* target,
@@ -1119,7 +1121,9 @@ void GrDrawContext::internalDrawPath(GrDrawTarget* target,
GrColor color,
bool useAA,
const SkPath& path,
- const GrStrokeInfo& strokeInfo) {
+ const GrStrokeInfo& strokeInfo,
+ const SkPath* origSrcPath,
+ const GrStrokeInfo* origStrokeInfo) {
RETURN_IF_ABANDONED
SkASSERT(!path.isEmpty());
@@ -1199,6 +1203,8 @@ void GrDrawContext::internalDrawPath(GrDrawTarget* target,
args.fPath = pathPtr;
args.fStroke = strokeInfoPtr;
args.fAntiAlias = useCoverageAA;
+ args.fOrigSrcPath = origSrcPath;
+ args.fOrigStrokeInfo = origStrokeInfo;
pr->drawPath(args);
}
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrPathRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698