Retract GrRenderTarget a bit
These sites don't necessarily need the full power of a GrRenderTarget object. This is a clean up for switching over to GrRenderTargetProxys.
Review URL: https://codereview.chromium.org/1486923004
diff --git a/src/gpu/GrBlurUtils.cpp b/src/gpu/GrBlurUtils.cpp
index 8cd569b..9ca445b 100644
--- a/src/gpu/GrBlurUtils.cpp
+++ b/src/gpu/GrBlurUtils.cpp
@@ -148,7 +148,6 @@
static void draw_path_with_mask_filter(GrContext* context,
GrDrawContext* drawContext,
- GrRenderTarget* renderTarget,
const GrClip& clip,
GrPaint* paint,
const SkMatrix& viewMatrix,
@@ -160,7 +159,7 @@
SkASSERT(maskFilter);
SkIRect clipBounds;
- clip.getConservativeBounds(renderTarget, &clipBounds);
+ clip.getConservativeBounds(drawContext->width(), drawContext->height(), &clipBounds);
SkTLazy<SkPath> tmpPath;
GrStrokeInfo strokeInfo(origStrokeInfo);
@@ -225,7 +224,7 @@
*devPathPtr,
strokeInfo,
paint->isAntiAlias(),
- renderTarget->numColorSamples()));
+ drawContext->numColorSamples()));
if (mask) {
GrTexture* filtered;
@@ -251,7 +250,6 @@
void GrBlurUtils::drawPathWithMaskFilter(GrContext* context,
GrDrawContext* drawContext,
- GrRenderTarget* rt,
const GrClip& clip,
const SkPath& origPath,
GrPaint* paint,
@@ -273,13 +271,12 @@
pathEffect = nullptr;
}
- draw_path_with_mask_filter(context, drawContext, rt, clip, paint, viewMatrix, mf, pathEffect,
+ draw_path_with_mask_filter(context, drawContext, clip, paint, viewMatrix, mf, pathEffect,
strokeInfo, pathPtr, pathIsMutable);
}
void GrBlurUtils::drawPathWithMaskFilter(GrContext* context,
GrDrawContext* drawContext,
- GrRenderTarget* renderTarget,
const GrClip& clip,
const SkPath& origSrcPath,
const SkPaint& paint,
@@ -340,7 +337,7 @@
}
if (paint.getMaskFilter()) {
- draw_path_with_mask_filter(context, drawContext, renderTarget, clip, &grPaint, viewMatrix,
+ draw_path_with_mask_filter(context, drawContext, clip, &grPaint, viewMatrix,
paint.getMaskFilter(), pathEffect, strokeInfo,
pathPtr, pathIsMutable);
} else {