Commit a09a9033 authored by Weiliang Chen's avatar Weiliang Chen Committed by Commit Bot

SkiaRenderer: Fix Filter by Passing in Local Matrix

SkImageFilter need filter origin and scale passed in and fix the bug
where it wasn't passed in before.

Bug: 922570
Change-Id: I24fcac2d80cc4de76eb2b72f4a24dfeec9f936b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1503341Reviewed-by: default avatarRobert Phillips <robertphillips@google.com>
Commit-Queue: weiliangc <weiliangc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#637956}
parent 6dc8b9b8
...@@ -894,7 +894,7 @@ bool SkiaRenderer::CalculateRPDQParams(sk_sp<SkImage> content, ...@@ -894,7 +894,7 @@ bool SkiaRenderer::CalculateRPDQParams(sk_sp<SkImage> content,
if (dst_rect.IsEmpty()) if (dst_rect.IsEmpty())
return false; return false;
params->image_filter = filter; params->image_filter = filter->makeWithLocalMatrix(local_matrix);
} }
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment