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

Issue 929473002: FontFamily SkTArrays can be moved. (Closed)

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

Description

FontFamily SkTArrays can be moved. The FontFamily type in SkFontConfigParser_android.h contains two fields of type SkTArray. Both of these contain types which can be moved instead of calling constructors and destructors on resize. This change avoids a number of unneeded SkString refs and unrefs. Committed: https://skia.googlesource.com/skia/+/b5d0ce6bd4fef192a9908562b5a01bc01683c7bb

Patch Set 1 #

Patch Set 2 : Add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M src/ports/SkFontConfigParser_android.h View 1 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
bungeman-skia
Found this change while cleaning out my stash. Should save a bit of copying and ...
5 years, 10 months ago (2015-02-13 18:22:38 UTC) #2
djsollen
Is it worth it since we only parse the font file 1x? If so, then ...
5 years, 10 months ago (2015-02-13 18:29:38 UTC) #3
bungeman-skia
On 2015/02/13 18:29:38, djsollen wrote: > Is it worth it since we only parse the ...
5 years, 10 months ago (2015-02-13 19:32:22 UTC) #4
djsollen
lgtm
5 years, 10 months ago (2015-02-13 19:37:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/929473002/2
5 years, 10 months ago (2015-02-13 19:38:06 UTC) #7
commit-bot: I haz the power
5 years, 10 months ago (2015-02-13 19:49:10 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:2) as
https://skia.googlesource.com/skia/+/b5d0ce6bd4fef192a9908562b5a01bc01683c7bb

Powered by Google App Engine
This is Rietveld 408576698