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

Issue 1346993006: Strip font name of special characters before dumping (Closed)

Created:
5 years, 3 months ago by ssid
Modified:
5 years, 2 months ago
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@resource
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Strip font name of special characters before dumping The font name can contain special characters in some OS that is considered as delimiters ('/') by the traces. This causes error in the dump name. This CL strips the fone name obtained before adding it to traces. This also adds discardable memory size for resources in cache. BUG=532838 Committed: https://skia.googlesource.com/skia/+/60df542afc3b792c6d563db2dfe233f65a2c3632

Patch Set 1 #

Total comments: 10

Patch Set 2 : Use std::isalnum #

Patch Set 3 : Nits. #

Total comments: 4

Patch Set 4 : Adding a comment suggested. #

Patch Set 5 : Nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -3 lines) Patch
M src/core/SkGlyphCache.cpp View 1 2 3 4 2 chunks +12 lines, -3 lines 0 comments Download
M src/core/SkResourceCache.cpp View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
ssid
Do you think this is good enough or should i do this processing in chrome ...
5 years, 3 months ago (2015-09-22 16:53:08 UTC) #2
Primiano Tucci (use gerrit)
LGTM with some comments https://codereview.chromium.org/1346993006/diff/1/src/core/SkGlyphCache.cpp File src/core/SkGlyphCache.cpp (right): https://codereview.chromium.org/1346993006/diff/1/src/core/SkGlyphCache.cpp#newcode8 src/core/SkGlyphCache.cpp:8: #include <ctype.h> you don't need ...
5 years, 3 months ago (2015-09-22 17:30:35 UTC) #3
ssid
Thanks made changes. https://codereview.chromium.org/1346993006/diff/1/src/core/SkGlyphCache.cpp File src/core/SkGlyphCache.cpp (right): https://codereview.chromium.org/1346993006/diff/1/src/core/SkGlyphCache.cpp#newcode8 src/core/SkGlyphCache.cpp:8: #include <ctype.h> On 2015/09/22 17:30:35, Primiano ...
5 years, 3 months ago (2015-09-23 13:11:41 UTC) #4
ssid
+reed This adds the change from previous CL for the resouce cache and fix for ...
5 years, 3 months ago (2015-09-23 13:13:19 UTC) #6
reed1
https://codereview.chromium.org/1346993006/diff/40001/src/core/SkGlyphCache.cpp File src/core/SkGlyphCache.cpp (right): https://codereview.chromium.org/1346993006/diff/40001/src/core/SkGlyphCache.cpp#newcode437 src/core/SkGlyphCache.cpp:437: for (size_t index = 0; index < fontName.size(); ++index) ...
5 years, 3 months ago (2015-09-23 13:21:30 UTC) #7
ssid
https://codereview.chromium.org/1346993006/diff/40001/src/core/SkGlyphCache.cpp File src/core/SkGlyphCache.cpp (right): https://codereview.chromium.org/1346993006/diff/40001/src/core/SkGlyphCache.cpp#newcode437 src/core/SkGlyphCache.cpp:437: for (size_t index = 0; index < fontName.size(); ++index) ...
5 years, 3 months ago (2015-09-23 13:30:22 UTC) #8
ssid
> https://codereview.chromium.org/1346993006/diff/40001/src/core/SkResourceCache.cpp#newcode682 > src/core/SkResourceCache.cpp:682: dump->dumpNumericValue(dumpName.c_str(), > "discardable_size", "bytes", rec.bytesUsed()); > On 2015/09/23 13:21:29, reed1 wrote: ...
5 years, 3 months ago (2015-09-23 15:22:33 UTC) #9
reed1
lgtm
5 years, 3 months ago (2015-09-24 10:06:29 UTC) #10
reed1
Perhaps this distinction between "live discardable" and "dead discardable" should be documented in the code ...
5 years, 3 months ago (2015-09-24 10:07:26 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/1346993006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1346993006/60001
5 years, 2 months ago (2015-09-30 19:50:43 UTC) #13
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/3546)
5 years, 2 months ago (2015-09-30 19:53:07 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1346993006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1346993006/80001
5 years, 2 months ago (2015-10-01 18:25:37 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-01 18:32:02 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1346993006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1346993006/80001
5 years, 2 months ago (2015-10-01 19:41:00 UTC) #22
commit-bot: I haz the power
5 years, 2 months ago (2015-10-01 19:41:45 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/60df542afc3b792c6d563db2dfe233f65a2c3632

Powered by Google App Engine
This is Rietveld 408576698