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

Issue 1683743005: Simple cleanups related to SkFixed. (Closed)

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

Description

Cleanups related to SkFixed. Remove SK_FixedNaN. It does not seem to be supported or used anywhere in Skia, Chromium, Android, or Google3, (except accidentally by TwoPtRadial::kDontDrawT). I think supporting it would erase any benefit of SkFixed over float. Remove SkBitmapFilter::lookup. It does not appear to be used anywhere in Skia, Chromium, Android, or Google3. Fix a bug in SkPaint::breakText that limited it to ~5kB of text. Now it can handle more than 1GB. BUG=skia:4632 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1683743005 Committed: https://skia.googlesource.com/skia/+/7ea5cb18389db11a94175de95c9db2b44972630c

Patch Set 1 #

Total comments: 7

Patch Set 2 : Add test for Paint::breakText. Revert change to SK_FixedMin. #

Patch Set 3 : Revert changes to SkTwoPointConicalGradient.h; actually add test. #

Patch Set 4 : Revert changes to src/core/SkScan_Hairline.cpp; causes one layout test to regress. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -53 lines) Patch
M include/core/SkFixed.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M include/core/SkRect.h View 1 chunk +1 line, -2 lines 0 comments Download
M samplecode/SampleText.cpp View 1 2 chunks +0 lines, -37 lines 0 comments Download
M src/core/SkBitmapFilter.h View 1 2 3 2 chunks +0 lines, -12 lines 0 comments Download
M src/core/SkPaint.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A tests/PaintBreakTextTest.cpp View 1 2 1 chunk +88 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (22 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/1683743005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1683743005/1
4 years, 10 months ago (2016-02-11 20:29:28 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-11 20:54:22 UTC) #6
dogben
4 years, 10 months ago (2016-02-11 20:56:34 UTC) #8
reed1
Can we make SkFixed entirely private? (i.e. do our clients ever need it?) https://codereview.chromium.org/1683743005/diff/1/include/core/SkFixed.h File ...
4 years, 10 months ago (2016-02-11 21:43:44 UTC) #9
dogben
Chromium uses SkFixed, mostly because it's the same as hb_position_t (HarfBuzz's fixed point type). There ...
4 years, 10 months ago (2016-02-11 21:53:13 UTC) #10
reed1
https://codereview.chromium.org/1683743005/diff/1/include/core/SkFixed.h File include/core/SkFixed.h (right): https://codereview.chromium.org/1683743005/diff/1/include/core/SkFixed.h#newcode24 include/core/SkFixed.h:24: #define SK_FixedMin (0x80000000) On 2016/02/11 21:53:13, Ben Wagner wrote: ...
4 years, 10 months ago (2016-02-11 22:22:59 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1683743005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1683743005/20001
4 years, 10 months ago (2016-02-12 02:23:43 UTC) #13
dogben
https://codereview.chromium.org/1683743005/diff/1/src/core/SkPaint.cpp File src/core/SkPaint.cpp (right): https://codereview.chromium.org/1683743005/diff/1/src/core/SkPaint.cpp#newcode1031 src/core/SkPaint.cpp:1031: Sk48Dot16 max = SkScalarTo48Dot16(maxWidth); On 2016/02/11 at 22:22:59, reed1 ...
4 years, 10 months ago (2016-02-12 02:35:24 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1683743005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1683743005/40001
4 years, 10 months ago (2016-02-12 02:35:41 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Mac-Clang-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac-Clang-x86_64-Release-Trybot/builds/217) Build-Ubuntu-Clang-x86_64-Debug-Trybot on ...
4 years, 10 months ago (2016-02-12 02:36:55 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1683743005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1683743005/80001
4 years, 10 months ago (2016-02-12 15:10:50 UTC) #23
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/6185)
4 years, 10 months ago (2016-02-12 15:14:11 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1683743005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1683743005/100001
4 years, 10 months ago (2016-02-12 15:19:41 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-12 15:53:04 UTC) #30
dogben
Updated diff. FWIW, SkPaint::breakText is not widely used at the moment.
4 years, 10 months ago (2016-02-12 15:55:15 UTC) #31
dogben
PTAL
4 years, 10 months ago (2016-02-16 22:18:26 UTC) #32
reed1
lgtm does any of this change Chrome layouttests?
4 years, 10 months ago (2016-02-22 18:11:41 UTC) #33
dogben
4 years, 10 months ago (2016-02-22 18:52:16 UTC) #34
dogben
Ben, this is the change to SkPaint::breakText that I mentioned to you.
4 years, 10 months ago (2016-02-22 18:53:12 UTC) #35
dogben
On 2016/02/22 at 18:11:41, reed wrote: > lgtm > > does any of this change ...
4 years, 10 months ago (2016-02-24 14:28:02 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1683743005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1683743005/120001
4 years, 10 months ago (2016-02-24 14:28:28 UTC) #42
commit-bot: I haz the power
Committed patchset #4 (id:120001) as https://skia.googlesource.com/skia/+/7ea5cb18389db11a94175de95c9db2b44972630c
4 years, 10 months ago (2016-02-24 14:51:55 UTC) #44
dogben
4 years, 10 months ago (2016-02-24 16:28:56 UTC) #45
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:120001) has been created in
https://codereview.chromium.org/1724283003/ by benjaminwagner@google.com.

The reason for reverting is: New test is failing on Windows..

Powered by Google App Engine
This is Rietveld 408576698