Fix leak in ComposedImageFilterOffset test
This fixes a leak in the ComposedImageFilterOffset test that was introduced in https://codereview.chromium.org/908273002/. BUG=chromium:453924 Review URL: https://codereview.chromium.org/922063005
This commit is contained in:
parent
5788faaa2a
commit
8e8c940ee3
@ -1092,7 +1092,8 @@ DEF_TEST(ComposedImageFilterOffset, reporter) {
|
||||
|
||||
SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(1, 0, 20, 20));
|
||||
SkAutoTUnref<SkImageFilter> offsetFilter(SkOffsetImageFilter::Create(0, 0, NULL, &cropRect));
|
||||
SkAutoTUnref<SkImageFilter> composedFilter(SkComposeImageFilter::Create(makeBlur(), offsetFilter.get()));
|
||||
SkAutoTUnref<SkImageFilter> blurFilter(makeBlur());
|
||||
SkAutoTUnref<SkImageFilter> composedFilter(SkComposeImageFilter::Create(blurFilter, offsetFilter.get()));
|
||||
SkBitmap result;
|
||||
SkIPoint offset;
|
||||
SkImageFilter::Context ctx(SkMatrix::I(), SkIRect::MakeLargest(), NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user