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

Issue 2073873002: Simplify mask/clip intersection, making sure to explicitly check for an empty mask. (Closed)

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

Description

Simplify mask/clip intersection, making sure to explicitly check for an empty mask. Previously we were only asserting the mask wasn't empty, which isn't necessarily true when we're given pathological float coordinates like +Inf or NaN. A local run of nanobench --match text_ was not able to show this is faster or slower. This patch fixed this first Chrome bug on my desktop, and the second is probably a dupe. BUG=chromium:619378, chromium:613912 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2073873002 Committed: https://skia.googlesource.com/skia/+/875e13ca0990e32da9db639743a913efe77f7e89

Patch Set 1 #

Patch Set 2 : add test #

Patch Set 3 : feh #

Patch Set 4 : becoming frustrating #

Total comments: 1

Patch Set 5 : alt fix #

Patch Set 6 : msvc #

Patch Set 7 : revert old change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -4 lines) Patch
M src/core/SkDraw.cpp View 1 2 3 4 5 6 2 chunks +8 lines, -4 lines 0 comments Download
M tests/DrawTextTest.cpp View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (23 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2073873002/1
4 years, 6 months ago (2016-06-16 20:16:37 UTC) #5
mtklein_C
4 years, 6 months ago (2016-06-16 20:23:15 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-16 20:38:50 UTC) #11
reed1
If we make a unittest that calls drawPosText with Inf, would that trigger the bug ...
4 years, 6 months ago (2016-06-16 20:49:49 UTC) #12
mtklein_C
On 2016/06/16 at 20:49:49, reed wrote: > If we make a unittest that calls drawPosText ...
4 years, 6 months ago (2016-06-16 21:27:07 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2073873002/20001
4 years, 6 months ago (2016-06-16 21:27:35 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/9242)
4 years, 6 months ago (2016-06-16 21:44:06 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/2073873002/40001
4 years, 6 months ago (2016-06-16 21:48:26 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Mips-Debug-Android-Trybot/builds/8383)
4 years, 6 months ago (2016-06-16 22:00:36 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2073873002/60001
4 years, 6 months ago (2016-06-16 22:02:19 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-16 22:18:34 UTC) #26
reed1
https://codereview.chromium.org/2073873002/diff/60001/src/core/SkDraw.cpp File src/core/SkDraw.cpp (right): https://codereview.chromium.org/2073873002/diff/60001/src/core/SkDraw.cpp#newcode1492 src/core/SkDraw.cpp:1492: if (mask.fBounds.isEmpty() || I wonder 1. if it would ...
4 years, 6 months ago (2016-06-17 10:39:42 UTC) #27
mtklein_C
On 2016/06/17 at 10:39:42, reed wrote: > https://codereview.chromium.org/2073873002/diff/60001/src/core/SkDraw.cpp > File src/core/SkDraw.cpp (right): > > https://codereview.chromium.org/2073873002/diff/60001/src/core/SkDraw.cpp#newcode1492 ...
4 years, 6 months ago (2016-06-17 11:58:38 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2073873002/80001
4 years, 6 months ago (2016-06-17 11:58:48 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/9247)
4 years, 6 months ago (2016-06-17 12:04:50 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2073873002/100001
4 years, 6 months ago (2016-06-17 12:10:58 UTC) #34
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-17 12:26:15 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2073873002/90003
4 years, 6 months ago (2016-06-17 15:24:37 UTC) #38
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-17 15:37:24 UTC) #40
mtklein_C
Whoops, forgot to ping the thread after trimming it down to just the fixed bounds ...
4 years, 6 months ago (2016-06-18 13:22:49 UTC) #41
reed1
lgtm
4 years, 6 months ago (2016-06-19 01:23:40 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2073873002/90003
4 years, 6 months ago (2016-06-19 12:11:59 UTC) #44
commit-bot: I haz the power
4 years, 6 months ago (2016-06-19 12:28:38 UTC) #46
Message was sent while issue was closed.
Committed patchset #7 (id:90003) as
https://skia.googlesource.com/skia/+/875e13ca0990e32da9db639743a913efe77f7e89

Powered by Google App Engine
This is Rietveld 408576698