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

Unified Diff: src/gpu/GrContext.cpp

Issue 1150993002: Mark SkPaths created by GrContext fallback draw logic as volatile (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | src/gpu/GrPath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 18f26efc65f9964845ed43234879b4a03b420205..342fb2175e9f4055d33536553486b4c4f33297d8 100755
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -580,6 +580,7 @@ void GrContext::drawRect(GrRenderTarget* rt,
RETURN_IF_ABANDONED
if (strokeInfo && strokeInfo->isDashed()) {
SkPath path;
+ path.setIsVolatile(true);
path.addRect(rect);
this->drawPath(rt, clip, paint, viewMatrix, path, *strokeInfo);
return;
@@ -1037,6 +1038,7 @@ void GrContext::drawRRect(GrRenderTarget*rt,
if (strokeInfo.isDashed()) {
SkPath path;
+ path.setIsVolatile(true);
path.addRRect(rrect);
this->drawPath(rt, clip, paint, viewMatrix, path, strokeInfo);
return;
@@ -1060,6 +1062,7 @@ void GrContext::drawRRect(GrRenderTarget*rt,
rrect,
strokeInfo)) {
SkPath path;
+ path.setIsVolatile(true);
path.addRRect(rrect);
this->internalDrawPath(target, &pipelineBuilder, viewMatrix, color, paint.isAntiAlias(),
path, strokeInfo);
@@ -1094,10 +1097,10 @@ void GrContext::drawDRRect(GrRenderTarget* rt,
outer,
inner)) {
SkPath path;
+ path.setIsVolatile(true);
path.addRRect(inner);
path.addRRect(outer);
path.setFillType(SkPath::kEvenOdd_FillType);
-
GrStrokeInfo fillRec(SkStrokeRec::kFill_InitStyle);
this->internalDrawPath(target, &pipelineBuilder, viewMatrix, color, paint.isAntiAlias(),
path, fillRec);
@@ -1119,6 +1122,7 @@ void GrContext::drawOval(GrRenderTarget* rt,
if (strokeInfo.isDashed()) {
SkPath path;
+ path.setIsVolatile(true);
path.addOval(oval);
this->drawPath(rt, clip, paint, viewMatrix, path, strokeInfo);
return;
@@ -1142,6 +1146,7 @@ void GrContext::drawOval(GrRenderTarget* rt,
oval,
strokeInfo)) {
SkPath path;
+ path.setIsVolatile(true);
path.addOval(oval);
this->internalDrawPath(target, &pipelineBuilder, viewMatrix, color, paint.isAntiAlias(),
path, strokeInfo);
« no previous file with comments | « no previous file | src/gpu/GrPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698