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

Issue 680363003: Use SkTypeface::getBounds() in bounding-box calculations. (Closed)

Created:
6 years, 1 month ago by mtklein_C
Modified:
6 years ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Use SkTypeface::getBounds() in bounding-box calculations. This should produce tighter conservative bounding boxes for text than the approximation code it replaces. Recording performance is neutral on my desktop. Playback performance improves by up to 15% on text heavy pages, e.g. desk_pokemonwiki.skp_1 3.24ms -> 2.83ms 0.87x desk_baidu.skp_1 1.91ms -> 1.58ms 0.83x Committed: https://skia.googlesource.com/skia/+/bf8dc343df4fbdcb8af546eb68b640e011a33489 CQ_EXTRA_TRYBOTS=client.skia:Test-Win7-ShuttleA-HD2000-x86-Debug-Trybot Committed: https://skia.googlesource.com/skia/+/c51add674dfb89b988a7fbc05f41838c203f9dcd

Patch Set 1 #

Patch Set 2 : add text size #

Total comments: 2

Patch Set 3 : comments #

Patch Set 4 : fudge assert #

Patch Set 5 : fudge differently #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -28 lines) Patch
M src/core/SkRecordDraw.cpp View 1 2 3 4 3 chunks +35 lines, -23 lines 0 comments Download
M tests/RecordDrawTest.cpp View 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 28 (12 generated)
mtklein
6 years, 1 month ago (2014-10-28 17:11:10 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/680363003/1
6 years, 1 month ago (2014-10-28 17:14:14 UTC) #4
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 1 month ago (2014-10-28 17:14:15 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot on client.skia (http://build.chromium.org/p/client.skia/builders/Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot/builds/306)
6 years, 1 month ago (2014-10-28 17:22:35 UTC) #7
reed1
lgtm w/ comments/questions https://codereview.chromium.org/680363003/diff/20001/src/core/SkRecordDraw.cpp File src/core/SkRecordDraw.cpp (right): https://codereview.chromium.org/680363003/diff/20001/src/core/SkRecordDraw.cpp#newcode452 src/core/SkRecordDraw.cpp:452: SkScalar max = SkTMax(SkTMax(-pad.fLeft, pad.fRight), /* ...
6 years, 1 month ago (2014-10-28 17:36:13 UTC) #8
mtklein
On 2014/10/28 17:36:13, reed1 wrote: > lgtm w/ comments/questions > > https://codereview.chromium.org/680363003/diff/20001/src/core/SkRecordDraw.cpp > File src/core/SkRecordDraw.cpp ...
6 years, 1 month ago (2014-10-28 17:51:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/680363003/40001
6 years, 1 month ago (2014-10-29 14:59:15 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001) as bf8dc343df4fbdcb8af546eb68b640e011a33489
6 years, 1 month ago (2014-10-29 15:12:13 UTC) #12
mtklein
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/685173002/ by mtklein@google.com. ...
6 years, 1 month ago (2014-10-29 15:32:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/680363003/60001
6 years, 1 month ago (2014-10-29 18:59:02 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot on client.skia (http://build.chromium.org/p/client.skia/builders/Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot/builds/343)
6 years, 1 month ago (2014-10-29 19:10:42 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/680363003/80001
6 years, 1 month ago (2014-10-29 19:25:18 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/680363003/80001
6 years, 1 month ago (2014-10-29 21:03:07 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/680363003/80001
6 years, 1 month ago (2014-10-29 22:36:30 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001) as c51add674dfb89b988a7fbc05f41838c203f9dcd
6 years, 1 month ago (2014-10-29 22:36:43 UTC) #27
mtklein
6 years, 1 month ago (2014-10-29 23:06:06 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/690833002/ by mtklein@google.com.

The reason for reverting is: Mac mini asserting.

Powered by Google App Engine
This is Rietveld 408576698