aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-03-17 14:31:39 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-17 14:31:39 -0700
commit37bd7c3aca66697fff2db79c21771a0b3cbe3b4c (patch)
treedaea856d5a7804f753abb63686e1e0f11a03452f /src/gpu
parentfc0b6d1053bb56698f2844bd5ca30bced7bb389d (diff)
Switch SkSpecialImage & SkSpecialSurface classes over to smart pointers
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/GrLayerHoister.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrLayerHoister.cpp b/src/gpu/GrLayerHoister.cpp
index a446be8084..0fef0ef335 100644
--- a/src/gpu/GrLayerHoister.cpp
+++ b/src/gpu/GrLayerHoister.cpp
@@ -304,12 +304,12 @@ void GrLayerHoister::FilterLayer(GrContext* context,
// TODO: should the layer hoister store stand alone layers as SkSpecialImages internally?
const SkIRect subset = SkIRect::MakeWH(layer->texture()->width(), layer->texture()->height());
- SkAutoTUnref<SkSpecialImage> img(SkSpecialImage::NewFromGpu(&proxy, subset,
- kNeedNewImageUniqueID_SpecialImage,
- layer->texture()));
+ sk_sp<SkSpecialImage> img(SkSpecialImage::MakeFromGpu(&proxy, subset,
+ kNeedNewImageUniqueID_SpecialImage,
+ layer->texture()));
SkIPoint offset = SkIPoint::Make(0, 0);
- SkAutoTUnref<SkSpecialImage> result(layer->filter()->filterImage(img,
+ SkAutoTUnref<SkSpecialImage> result(layer->filter()->filterImage(img.get(),
filterContext,
&offset));
if (!result) {