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

Issue 1497083005: Revert of Matrix convolution bounds fix; affectsTransparentBlack fixes. (Closed)

Created:
5 years ago by Stephen White
Modified:
5 years ago
Reviewers:
reed2, reed1
CC:
reviews_skia.org, robertphillips, scroggo
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Revert of Matrix convolution bounds fix; affectsTransparentBlack fixes. (patchset #4 id:60001 of https://codereview.chromium.org/1500923004/ ) Reason for revert: Introduced memory leak; pixel changes in Chrome. Original issue's description: > Matrix convolution bounds fix; affectsTransparentBlack fixes. > > Because the convolution kernel is (currently) applied in device space, > there's no way to know which object-space pixels will be touched. So > return false from canComputeFastBounds(). > > The results from the matrixconvolution GM were actually wrong, since > they were showing edge differences on the clip boundaries, where they > should really only show on crop boundaries. I added a crop to the GM > to keep the results the same (which are useful to test the different > convolution tile modes). > > While I was at it, SkImageFilter::affectsTransparentBlack() was > inapplicable on most things except color filters, and its use on > leaf nodes was confusing. So I removed it, and made > SkImageFilter::canComputeFastBounds() virtual instead. > > BUG=skia: > > Committed: https://skia.googlesource.com/skia/+/8705ec80518ef551994b82ca5ccaeb0241d6adec TBR=reed@google.com,reed@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Committed: https://skia.googlesource.com/skia/+/50c044b9addac613189d6378641c65721e16b2ed

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -41 lines) Patch
M gm/matrixconvolution.cpp View 1 chunk +10 lines, -11 lines 0 comments Download
M include/core/SkImageFilter.h View 3 chunks +15 lines, -2 lines 0 comments Download
M include/effects/SkColorFilterImageFilter.h View 1 chunk +1 line, -1 line 0 comments Download
M include/effects/SkLightingImageFilter.h View 1 chunk +1 line, -1 line 0 comments Download
M include/effects/SkMatrixConvolutionImageFilter.h View 1 chunk +1 line, -1 line 0 comments Download
M include/effects/SkRectShaderImageFilter.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkImageFilter.cpp View 3 chunks +7 lines, -8 lines 0 comments Download
M src/effects/SkColorFilterImageFilter.cpp View 1 chunk +2 lines, -5 lines 0 comments Download
M src/effects/SkMatrixConvolutionImageFilter.cpp View 1 chunk +0 lines, -6 lines 0 comments Download
M src/effects/SkRectShaderImageFilter.cpp View 1 chunk +2 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
Stephen White
Created Revert of Matrix convolution bounds fix; affectsTransparentBlack fixes.
5 years ago (2015-12-05 13:59:32 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1497083005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1497083005/1
5 years ago (2015-12-05 13:59:34 UTC) #2
commit-bot: I haz the power
5 years ago (2015-12-05 13:59:45 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/50c044b9addac613189d6378641c65721e16b2ed

Powered by Google App Engine
This is Rietveld 408576698