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

Unified Diff: src/gpu/GrTextContext.cpp

Issue 1421493003: tunnel down texture-size-constraint to imagefilters (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/GrTextContext.cpp
diff --git a/src/gpu/GrTextContext.cpp b/src/gpu/GrTextContext.cpp
index a2e245d7e56f708e48c9ecb272e72e98c4153a2d..abbb5f1510bff8e5d2692cb322cba8fea2ca81dc 100644
--- a/src/gpu/GrTextContext.cpp
+++ b/src/gpu/GrTextContext.cpp
@@ -180,7 +180,8 @@ void GrTextContext::drawTextAsPath(GrDrawContext* dc, GrRenderTarget* rt,
if (iterPath) {
const SkPaint& pnt = iter.getPaint();
GrBlurUtils::drawPathWithMaskFilter(fContext, dc, rt, clip, *iterPath,
- pnt, viewMatrix, &matrix, clipBounds, false);
+ pnt, viewMatrix, &matrix, clipBounds, false,
+ GrTextureProvider::kApprox_SizeConstraint);
}
prevXPos = xpos;
}
@@ -228,7 +229,8 @@ void GrTextContext::drawPosTextAsPath(GrDrawContext* dc, GrRenderTarget* rt,
matrix[SkMatrix::kMTransX] = loc.fX;
matrix[SkMatrix::kMTransY] = loc.fY;
GrBlurUtils::drawPathWithMaskFilter(fContext, dc, rt, clip, *path, paint,
- viewMatrix, &matrix, clipBounds, false);
+ viewMatrix, &matrix, clipBounds, false,
+ GrTextureProvider::kApprox_SizeConstraint);
}
}
pos += scalarsPerPosition;

Powered by Google App Engine
This is Rietveld 408576698