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

Unified Diff: src/gpu/GrBlurUtils.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/GrBlurUtils.cpp
diff --git a/src/gpu/GrBlurUtils.cpp b/src/gpu/GrBlurUtils.cpp
index 5d691fb137abe2fd646d9f3f64db1c93dfd1c7fd..8d59fbbccf02bf91a49c98df391cb39ef97f6da9 100644
--- a/src/gpu/GrBlurUtils.cpp
+++ b/src/gpu/GrBlurUtils.cpp
@@ -155,7 +155,8 @@ void GrBlurUtils::drawPathWithMaskFilter(GrContext* context,
const SkMatrix& origViewMatrix,
const SkMatrix* prePathMatrix,
const SkIRect& clipBounds,
- bool pathIsMutable) {
+ bool pathIsMutable,
+ GrTextureProvider::SizeConstraint constraint) {
Stephen White 2015/10/22 15:25:04 Could we remove this, and just change the paramete
reed1 2015/10/22 16:24:55 Removed
SkASSERT(!pathIsMutable || origSrcPath.isVolatile());
GrStrokeInfo strokeInfo(paint);
@@ -265,7 +266,7 @@ void GrBlurUtils::drawPathWithMaskFilter(GrContext* context,
GrTexture* filtered;
if (paint.getMaskFilter()->filterMaskGPU(mask, viewMatrix, maskRect,
- &filtered, true)) {
+ &filtered, true, constraint)) {
// filterMaskGPU gives us ownership of a ref to the result
SkAutoTUnref<GrTexture> atu(filtered);
if (draw_mask(drawContext,

Powered by Google App Engine
This is Rietveld 408576698