Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Issue 1661613002: Use SkBitmapProcStateAutoMapper for filter samplers also (Closed)

Created:
4 years, 10 months ago by f(malita)
Modified:
4 years, 10 months ago
Reviewers:
reed1
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Use SkBitmapProcStateAutoMapper for filter samplers also Observation: filter procs are also biased by s.fFilterOne{X,Y} / 2. They all do something along these lines: s.fInvProc(s.fInvMatrix, SkIntToScalar(x) + SK_ScalarHalf, SkIntToScalar(y) + SK_ScalarHalf, &srcPt); SkFixed fx = SkScalarToFixed(srcPt.fX) - (s.fFilterOneX >> 1); SkFixed fy = SkScalarToFixed(srcPt.fY) - (s.fFilterOneX >> 1); It's trivial to extend SkBitmapProcStateAutoMapper to handle this internally, and convert everyone off explicit mapping. R=reed@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1661613002 CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Committed: https://skia.googlesource.com/skia/+/2404f03413bc9b4fa3f556c64642e57507092d8d

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -46 lines) Patch
M src/core/SkBitmapProcState.h View 2 chunks +13 lines, -7 lines 0 comments Download
M src/core/SkBitmapProcState_matrix.h View 2 chunks +6 lines, -11 lines 0 comments Download
M src/core/SkBitmapProcState_shaderproc.h View 2 chunks +3 lines, -5 lines 0 comments Download
M src/opts/SkBitmapProcState_matrix_neon.h View 2 chunks +6 lines, -11 lines 0 comments Download
M src/opts/SkBitmapProcState_opts_SSE2.cpp View 1 2 chunks +6 lines, -12 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
f(malita)
Worth cleaning up all fInvProc boilerplate? Adds an extra conditional to SkBitmapProcStateAutoMapper, but I don't ...
4 years, 10 months ago (2016-02-02 21:28:09 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1661613002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1661613002/20001
4 years, 10 months ago (2016-02-02 21:29:51 UTC) #6
reed1
lgtm I wonder if the mapper's api should be mapper.fractionalIntX() in case someone forgets its ...
4 years, 10 months ago (2016-02-03 00:10:10 UTC) #8
f(malita)
On 2016/02/03 00:10:10, reed1 wrote: > I wonder if the mapper's api should be > ...
4 years, 10 months ago (2016-02-03 13:42:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1661613002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1661613002/20001
4 years, 10 months ago (2016-02-03 13:43:06 UTC) #11
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 13:44:24 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/2404f03413bc9b4fa3f556c64642e57507092d8d

Powered by Google App Engine
This is Rietveld 408576698