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

Issue 1134743003: antialias matrix-image-filter to get smooth diagonals (Closed)

Created:
5 years, 7 months ago by reed1
Modified:
5 years, 7 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

antialias matrix-image-filter to get smooth diagonals BUG=skia: Committed: https://skia.googlesource.com/skia/+/fa33f5a6b770130acdc55f2ffe19dd545665726a

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : easier to see bug #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : remove clear(0), update dox to justify this #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -7 lines) Patch
M include/core/SkImageFilter.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 chunks +8 lines, -3 lines 0 comments Download
M src/core/SkDeviceImageFilterProxy.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M src/core/SkMatrixImageFilter.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/core/SkMatrixImageFilter.cpp View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 33 (8 generated)
reed1
aa makes the edges look nice, but wanks out when on GPU :( see gm:matriximagefilter ...
5 years, 7 months ago (2015-05-14 19:50:26 UTC) #2
Stephen White
On 2015/05/14 19:50:26, reed1 wrote: > aa makes the edges look nice, but wanks out ...
5 years, 7 months ago (2015-05-14 20:09:09 UTC) #3
reed1
seems to be related to the exact-size -vs- sloppy/fast size for the texture.
5 years, 7 months ago (2015-05-14 21:13:41 UTC) #4
Stephen White
On 2015/05/14 20:09:09, Stephen White wrote: > On 2015/05/14 19:50:26, reed1 wrote: > > aa ...
5 years, 7 months ago (2015-05-14 21:31:16 UTC) #5
Stephen White
This fix seems to work for the GPU side. Brian, does this look correct? Note ...
5 years, 7 months ago (2015-05-14 22:06:35 UTC) #6
bsalomon
On 2015/05/14 22:06:35, Stephen White wrote: > This fix seems to work for the GPU ...
5 years, 7 months ago (2015-05-15 13:51:02 UTC) #7
reed1
New approach : tweak saveLayer to know when it can't cheat on the layer's surface
5 years, 7 months ago (2015-05-15 15:50:57 UTC) #8
reed1
5 years, 7 months ago (2015-05-15 15:51:23 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134743003/60001
5 years, 7 months ago (2015-05-15 16:06:01 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-15 16:12:23 UTC) #14
reed1
ptal -- may rename the enum, but it will affect a lot of files incidentally, ...
5 years, 7 months ago (2015-05-15 17:05:19 UTC) #15
bsalomon
lgtm
5 years, 7 months ago (2015-05-15 17:08:33 UTC) #16
robertphillips
https://codereview.chromium.org/1134743003/diff/60001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/1134743003/diff/60001/include/core/SkImageFilter.h#newcode348 include/core/SkImageFilter.h:348: bool mayDrawWithMatrix() const { return this->onMayDrawWithMatrix(); } "may Ganesh" ...
5 years, 7 months ago (2015-05-15 17:11:08 UTC) #17
reed1
https://codereview.chromium.org/1134743003/diff/60001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/1134743003/diff/60001/include/core/SkImageFilter.h#newcode348 include/core/SkImageFilter.h:348: bool mayDrawWithMatrix() const { return this->onMayDrawWithMatrix(); } On 2015/05/15 ...
5 years, 7 months ago (2015-05-15 17:24:25 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134743003/80002
5 years, 7 months ago (2015-05-15 17:24:55 UTC) #21
robertphillips
lgtm
5 years, 7 months ago (2015-05-15 17:25:51 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-15 17:30:59 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134743003/80002
5 years, 7 months ago (2015-05-15 17:33:16 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:80002) as https://skia.googlesource.com/skia/+/fa33f5a6b770130acdc55f2ffe19dd545665726a
5 years, 7 months ago (2015-05-15 17:33:41 UTC) #27
reed1
crap -- this may generate layouttests changes, so I may need to revert and add ...
5 years, 7 months ago (2015-05-15 17:34:15 UTC) #28
reed1
A revert of this CL (patchset #6 id:80002) has been created in https://codereview.chromium.org/1128823010/ by reed@google.com. ...
5 years, 7 months ago (2015-05-15 17:38:48 UTC) #29
Stephen White
On 2015/05/15 17:38:48, reed1 wrote: > A revert of this CL (patchset #6 id:80002) has ...
5 years, 7 months ago (2015-05-15 17:44:02 UTC) #30
bsalomon
On 2015/05/15 17:44:02, Stephen White wrote: > On 2015/05/15 17:38:48, reed1 wrote: > > A ...
5 years, 7 months ago (2015-05-15 17:55:16 UTC) #31
Stephen White
On 2015/05/15 17:55:16, bsalomon wrote: > On 2015/05/15 17:44:02, Stephen White wrote: > > On ...
5 years, 7 months ago (2015-05-15 18:00:22 UTC) #32
bsalomon
5 years, 7 months ago (2015-05-15 18:02:48 UTC) #33
Message was sent while issue was closed.
On 2015/05/15 18:00:22, Stephen White wrote:
> On 2015/05/15 17:55:16, bsalomon wrote:
> > On 2015/05/15 17:44:02, Stephen White wrote:
> > > On 2015/05/15 17:38:48, reed1 wrote:
> > > > A revert of this CL (patchset #6 id:80002) has been created in
> > > > https://codereview.chromium.org/1128823010/ by mailto:reed@google.com.
> > > > 
> > > > The reason for reverting is: likely affect layouttests, so need to add a
> > > guard.
> > > 
> > > Just my 2c: I'd much prefer the small Ganesh patch above to adding this
new
> > API
> > > to SkImageFilter.
> > 
> > I really don't want to make SkGpuDevice promise to implement drawBitmap
> > correctly for all cases where the bitmap is approx-texture-backed. That
patch
> > fixes one issue with them, but there are a host of other problems.
> > 
> > I think the real answer here is to make formalize the CTM contract between
> > canvas and IFs so the canvas can apply the residual matrix and make the
right
> > determination about whether it is a 1-to-1 pixel matrix without having to
> query
> > the IF.
> 
> Hmm, ok. It seems like the "pinch point" you referred to above (going from
> scratch to
> tight-bounds textures) is going to cost us performance with an extra draw, but
> maybe 
> I'm missing something.
> 

The idea is we'd only do the copy when the caller can't promise that the draw is
1-to-1.

Powered by Google App Engine
This is Rietveld 408576698