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

Issue 2115163002: cc: Fix a bug where filter outsets for drop-shadow could be negative. (Closed)

Created:
4 years, 5 months ago by jbroman
Modified:
4 years, 5 months ago
Reviewers:
enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Fix a bug where filter outsets for drop-shadow could be negative. The drop shadow filter draws the original content as well as its shadow, so it should never have negative filter outsets (i.e. applying the filter always produces output with bounds enclosing the original content). While FilterOperations::GetOutsets will likely be removed shortly, there is still code relying on it. Additionally, this gives a good excuse to add a unit test for FilterOperations::MapRect/MapRectReverse, confirming that it does not have the same issue. BUG=600821 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/e29d64cfae00a48483cc6497d39fb822c807a83a Cr-Commit-Position: refs/heads/master@{#404009}

Patch Set 1 : fix #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -4 lines) Patch
M cc/output/filter_operations.cc View 1 chunk +4 lines, -4 lines 3 comments Download
M cc/output/filter_operations_unittest.cc View 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
jbroman
4 years, 5 months ago (2016-07-02 00:59:48 UTC) #4
enne (OOO)
https://codereview.chromium.org/2115163002/diff/20001/cc/output/filter_operations.cc File cc/output/filter_operations.cc (right): https://codereview.chromium.org/2115163002/diff/20001/cc/output/filter_operations.cc#newcode113 cc/output/filter_operations.cc:113: *top += std::max(0, spread - op.drop_shadow_offset().y()); What if your ...
4 years, 5 months ago (2016-07-06 17:34:57 UTC) #5
jbroman
https://codereview.chromium.org/2115163002/diff/20001/cc/output/filter_operations.cc File cc/output/filter_operations.cc (right): https://codereview.chromium.org/2115163002/diff/20001/cc/output/filter_operations.cc#newcode113 cc/output/filter_operations.cc:113: *top += std::max(0, spread - op.drop_shadow_offset().y()); On 2016/07/06 at ...
4 years, 5 months ago (2016-07-06 17:37:32 UTC) #6
enne (OOO)
lgtm https://codereview.chromium.org/2115163002/diff/20001/cc/output/filter_operations.cc File cc/output/filter_operations.cc (right): https://codereview.chromium.org/2115163002/diff/20001/cc/output/filter_operations.cc#newcode113 cc/output/filter_operations.cc:113: *top += std::max(0, spread - op.drop_shadow_offset().y()); *drinks more ...
4 years, 5 months ago (2016-07-06 17:57:18 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2115163002/20001
4 years, 5 months ago (2016-07-06 17:59:59 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/99258)
4 years, 5 months ago (2016-07-06 21:06:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2115163002/20001
4 years, 5 months ago (2016-07-06 21:21:35 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:20001)
4 years, 5 months ago (2016-07-07 00:28:11 UTC) #14
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-07 00:28:31 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 00:31:03 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/e29d64cfae00a48483cc6497d39fb822c807a83a
Cr-Commit-Position: refs/heads/master@{#404009}

Powered by Google App Engine
This is Rietveld 408576698