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

Issue 1544983004: df generation: single allocation with calloc (Closed)

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

Description

df generation: single allocation with calloc The dfStorage DFData allocation can never fit in its stack space: 5px padding on each side always implies at least a 10x10 DFData allocation, but the stack space only fits 64 DFData. So we've always been spilling to the heap. If we're going to spill to the heap, we might as well allocate/free all our temporary memory in one block, and since we want it zeroed, might as well calloc. So in practice this replaces 1-2 malloc, 1-2 free, and 2 bzeros with 1 calloc and 1 free. BUG=skia:4729 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1544983004 Committed: https://skia.googlesource.com/skia/+/12204d90337656542a42fa0fcccb7bec13af0cce CQ_EXTRA_TRYBOTS=client.skia.android:Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release-Trybot Committed: https://skia.googlesource.com/skia/+/2c2d8ab08c39fad2706895e69dcc9ed1aeb9bb2a

Patch Set 1 #

Patch Set 2 : simpler #

Patch Set 3 : swap #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -9 lines) Patch
M src/core/SkDistanceFieldGen.cpp View 1 2 1 chunk +4 lines, -9 lines 0 comments Download

Messages

Total messages: 29 (17 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/1544983004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1544983004/1
5 years ago (2015-12-23 19:52:51 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-23 20:09:26 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1544983004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1544983004/20001
5 years ago (2015-12-23 20:50:16 UTC) #11
mtklein_C
5 years ago (2015-12-23 20:58:19 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-23 21:07:00 UTC) #16
jvanverth1
lgtm
4 years, 11 months ago (2016-01-04 15:00:17 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1544983004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1544983004/20001
4 years, 11 months ago (2016-01-05 02:21:05 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/12204d90337656542a42fa0fcccb7bec13af0cce
4 years, 11 months ago (2016-01-05 02:40:10 UTC) #21
mtklein
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1556263002/ by mtklein@google.com. ...
4 years, 11 months ago (2016-01-05 03:02:16 UTC) #22
mtklein
Note to self: failures were SIGBUS, trying to load something from DFData (e.g. a float) ...
4 years, 11 months ago (2016-01-05 04:44:25 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1544983004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1544983004/40001
4 years, 11 months ago (2016-01-05 12:48:02 UTC) #27
commit-bot: I haz the power
4 years, 11 months ago (2016-01-05 13:06:29 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/2c2d8ab08c39fad2706895e69dcc9ed1aeb9bb2a

Powered by Google App Engine
This is Rietveld 408576698