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

Issue 340613005: Add scale param to SkAlphaThresholdFilter. (Closed)

Created:
6 years, 6 months ago by garykac
Modified:
6 years, 4 months ago
CC:
reviews_skia.org, danakj
Base URL:
https://chromium.googlesource.com/skia.git@master
Visibility:
Public.

Description

Add scale param to SkAlphaThresholdFilter. This scale is applied to the region before the filter is applied. It is used to adjust the region by the device's DPI.

Patch Set 1 #

Patch Set 2 : Add separate x and y scales #

Patch Set 3 : Use SkMatrix for scale #

Total comments: 2

Patch Set 4 : Change |scale| to |transform| #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -2 lines) Patch
M include/effects/SkAlphaThresholdFilter.h View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M src/effects/SkAlphaThresholdFilter.cpp View 1 2 3 6 chunks +18 lines, -2 lines 1 comment Download

Messages

Total messages: 15 (0 generated)
garykac
(For context, see crrev.com/315083004) In this cl, we're adding the scale to the SkAlphaThresholdFilter. Since ...
6 years, 6 months ago (2014-06-18 01:15:12 UTC) #1
danakj
Are we sure we only need 1 scale? What if this is used on a ...
6 years, 6 months ago (2014-06-18 15:38:44 UTC) #2
garykac
On 2014/06/18 15:38:44, danakj wrote: > Are we sure we only need 1 scale? What ...
6 years, 6 months ago (2014-06-18 16:35:23 UTC) #3
garykac
On 2014/06/18 16:35:23, garykac wrote: > On 2014/06/18 15:38:44, danakj wrote: > > Are we ...
6 years, 5 months ago (2014-07-09 22:20:31 UTC) #4
bsalomon
On 2014/07/09 22:20:31, garykac wrote: > On 2014/06/18 16:35:23, garykac wrote: > > On 2014/06/18 ...
6 years, 5 months ago (2014-07-10 13:36:52 UTC) #5
garykac
On 2014/07/10 13:36:52, bsalomon wrote: > On 2014/07/09 22:20:31, garykac wrote: > > On 2014/06/18 ...
6 years, 5 months ago (2014-07-10 22:59:14 UTC) #6
bsalomon
Can we call the matrix params/members something other than "scale"? They could just as easily ...
6 years, 5 months ago (2014-07-11 13:00:25 UTC) #7
garykac
>Can we call the matrix params/members something other >than "scale"? They could just as easily ...
6 years, 5 months ago (2014-07-11 19:10:59 UTC) #8
bsalomon
Thanks for making the changes! lgtm
6 years, 5 months ago (2014-07-11 19:25:28 UTC) #9
garykac
The CQ bit was checked by garykac@chromium.org
6 years, 5 months ago (2014-07-11 20:07:00 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-11 20:07:14 UTC) #11
commit-bot: I haz the power
Commit queue rejected this change because it did not recognize the base URL. Please commit ...
6 years, 5 months ago (2014-07-11 20:07:16 UTC) #12
Stephen White
https://codereview.chromium.org/340613005/diff/60001/src/effects/SkAlphaThresholdFilter.cpp File src/effects/SkAlphaThresholdFilter.cpp (right): https://codereview.chromium.org/340613005/diff/60001/src/effects/SkAlphaThresholdFilter.cpp#newcode49 src/effects/SkAlphaThresholdFilter.cpp:49: const SkMatrix& transform, Is there a reason this needs ...
6 years, 5 months ago (2014-07-11 20:15:24 UTC) #13
bsalomon
On 2014/07/11 20:15:24, Stephen White wrote: > https://codereview.chromium.org/340613005/diff/60001/src/effects/SkAlphaThresholdFilter.cpp > File src/effects/SkAlphaThresholdFilter.cpp (right): > > https://codereview.chromium.org/340613005/diff/60001/src/effects/SkAlphaThresholdFilter.cpp#newcode49 ...
6 years, 5 months ago (2014-07-11 20:24:26 UTC) #14
garykac
6 years, 5 months ago (2014-07-11 23:33:09 UTC) #15
On 2014/07/11 20:24:26, bsalomon wrote:
> On 2014/07/11 20:15:24, Stephen White wrote:
> >
>
https://codereview.chromium.org/340613005/diff/60001/src/effects/SkAlphaThres...
> > File src/effects/SkAlphaThresholdFilter.cpp (right):
> > 
> >
>
https://codereview.chromium.org/340613005/diff/60001/src/effects/SkAlphaThres...
> > src/effects/SkAlphaThresholdFilter.cpp:49: const SkMatrix& transform,
> > Is there a reason this needs to be a separate matrix, and can't be part of
the
> > CTM? Most filters already transform their parameters by the CTM at draw
time.
> 
> I think the idea here is to transform the region used by the filter rather
than
> to account for changes to the CTM in the filter. I could be misunderstanding,
> though.

I'm currently testing https://codereview.chromium.org/191123002/ to see if it
fixes our HiDPI scaling problems. If it is does, then this cl will not be
needed.

Powered by Google App Engine
This is Rietveld 408576698