diff options
author | 2013-07-22 20:03:22 +0000 | |
---|---|---|
committer | 2013-07-22 20:03:22 +0000 | |
commit | ccf225cebb68f9dbd8e353ba0ded247f7e8915ec (patch) | |
tree | 1c92c05d4ff012766ca266d90496301772267553 /bench/SortBench.cpp | |
parent | 49a07ad0977fb118fe91f5c908b6703e2d89dec6 (diff) |
This patch implements a crop rect for SkImageFilter. It has been implemented for SkColorFilterImageFilter and SkBlurImageFilter as examples.
In order to preserve the immutability of SkImageFilters, the crop rect is passed as a constructor parameter. If NULL (the default), the bounds of the input image are used, as before.
This also tightens up the boundary handling for SkImageBlurFilter on the GPU backend. Where we were previously using clamping semantics, we now respect decal semantics (so we don't oversaturate the edges). This brings the GPU and raster backends into closer alignment, but will require some new baselines for the GPU tests.
At a minimum, the following tests will need new baselines: imageblur, imagefiltersbase, imagefilterscropped, spritebitmap.
R=reed@google.com
Review URL: https://codereview.chromium.org/19775006
git-svn-id: http://skia.googlecode.com/svn/trunk@10251 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/SortBench.cpp')
0 files changed, 0 insertions, 0 deletions