aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGpuDevice_drawTexture.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-08-05 07:51:29 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-05 07:51:30 -0700
commit9aff85a545703af5880e10726dfb40005ea9934e (patch)
treef69cd14fd8319f57b5b670ebd311d04451afc158 /src/gpu/SkGpuDevice_drawTexture.cpp
parentfeb3c1a57faee39dc10ac904f6b215ba50e286b4 (diff)
Minor clean up related to blur mask filters
This is the non-substantive portion of: https://codereview.chromium.org/2201133002/ (Implement GPU occluded blur mask filter) GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2214163003 Review-Url: https://codereview.chromium.org/2214163003
Diffstat (limited to 'src/gpu/SkGpuDevice_drawTexture.cpp')
-rw-r--r--src/gpu/SkGpuDevice_drawTexture.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gpu/SkGpuDevice_drawTexture.cpp b/src/gpu/SkGpuDevice_drawTexture.cpp
index da0a4acd45..2843c31996 100644
--- a/src/gpu/SkGpuDevice_drawTexture.cpp
+++ b/src/gpu/SkGpuDevice_drawTexture.cpp
@@ -226,15 +226,13 @@ void SkGpuDevice::drawTextureProducerImpl(GrTextureProducer* producer,
// First see if we can do the draw + mask filter direct to the dst.
SkStrokeRec rec(SkStrokeRec::kFill_InitStyle);
- SkRRect rrect;
- rrect.setRect(clippedDstRect);
if (mf->directFilterRRectMaskGPU(fContext->textureProvider(),
fDrawContext.get(),
&grPaint,
clip,
viewMatrix,
rec,
- rrect)) {
+ SkRRect::MakeRect(clippedDstRect))) {
return;
}
SkPath rectPath;