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

Issue 567543002: Avoid re-parsing of string in fillText and measureText in Canvas (Closed)

Created:
6 years, 3 months ago by h.joshi
Modified:
6 years, 2 months ago
Reviewers:
eae, behdad
CC:
blink-reviews, jamesr, krit, blink-reviews-html_chromium.org, jbroman, danakj, dglazkov+blink, Rik, Stephen Chennney, aandrey+blink_chromium.org, pdr., rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Avoid re-parsing of string in fillText and measureText calls of Canvas 2D. Allowing "width" method in Font.cpp to handle space normalization. R=eae@chromium.org BUG=413225 TEST=fast/canvas/canvas-normalize-string.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182675

Patch Set 1 #

Patch Set 2 : Updating code and adding Layout test case #

Total comments: 12

Patch Set 3 : Comment fixes #

Patch Set 4 : Comment updtae #

Patch Set 5 : Updating Test Expectation file #

Patch Set 6 : Updating test expectation file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -65 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/canvas-normalize-string.html View 1 1 chunk +67 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/canvas-normalize-string-expected.txt View 1 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 3 4 4 chunks +3 lines, -32 lines 0 comments Download
M Source/platform/fonts/Character.h View 1 2 chunks +12 lines, -1 line 0 comments Download
M Source/platform/fonts/Font.h View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M Source/platform/fonts/Font.cpp View 1 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download
M Source/platform/fonts/WidthIterator.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/fonts/WidthIterator.cpp View 1 2 3 5 chunks +7 lines, -16 lines 0 comments Download
M Source/platform/fonts/harfbuzz/HarfBuzzShaper.cpp View 1 2 5 chunks +10 lines, -6 lines 0 comments Download
M Source/platform/fonts/mac/FontComplexTextMac.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/text/TextRun.h View 1 2 7 chunks +10 lines, -2 lines 0 comments Download
M Source/platform/text/TextRun.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
h.joshi
Pls review
6 years, 3 months ago (2014-09-12 14:54:29 UTC) #3
eae
This doesn't seem right. Could you please explain what you're trying to do here?
6 years, 3 months ago (2014-09-12 20:33:28 UTC) #4
h.joshi
When fillText or measureText is called in Canvas 2D, we first call "normalizeSpaces" in which ...
6 years, 3 months ago (2014-09-13 14:35:06 UTC) #5
h.joshi
Submitted patch also shifts all text handling to font module, so that other layers using ...
6 years, 3 months ago (2014-09-13 20:25:53 UTC) #6
eae
Thanks for the explanation and test! https://codereview.chromium.org/567543002/diff/20001/Source/platform/fonts/Font.cpp File Source/platform/fonts/Font.cpp (right): https://codereview.chromium.org/567543002/diff/20001/Source/platform/fonts/Font.cpp#newcode572 Source/platform/fonts/Font.cpp:572: glyphData = glyphDataForCharacter(character, ...
6 years, 3 months ago (2014-09-16 00:46:34 UTC) #7
h.joshi
@Emil: Made suggested changes Pls review https://codereview.chromium.org/567543002/diff/20001/Source/platform/fonts/Font.cpp File Source/platform/fonts/Font.cpp (right): https://codereview.chromium.org/567543002/diff/20001/Source/platform/fonts/Font.cpp#newcode572 Source/platform/fonts/Font.cpp:572: glyphData = glyphDataForCharacter(character, ...
6 years, 3 months ago (2014-09-16 05:48:11 UTC) #8
h.joshi
@Emil: Pls review this patch.
6 years, 3 months ago (2014-09-18 05:11:28 UTC) #9
h.joshi
@Emil: PTAL
6 years, 3 months ago (2014-09-23 05:08:29 UTC) #10
eae
LGTM
6 years, 3 months ago (2014-09-24 07:51:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/567543002/60001
6 years, 3 months ago (2014-09-24 07:52:40 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/24520)
6 years, 3 months ago (2014-09-24 09:16:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/567543002/80001
6 years, 3 months ago (2014-09-24 10:33:40 UTC) #17
h.joshi
Thank you Emil.
6 years, 3 months ago (2014-09-24 10:36:41 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/28550)
6 years, 3 months ago (2014-09-24 12:41:48 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/28550)
6 years, 3 months ago (2014-09-24 12:41:50 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/567543002/80001
6 years, 2 months ago (2014-09-25 09:08:27 UTC) #23
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 2 months ago (2014-09-25 09:08:50 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/567543002/100001
6 years, 2 months ago (2014-09-25 10:28:11 UTC) #27
commit-bot: I haz the power
6 years, 2 months ago (2014-09-25 11:36:05 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as 182675

Powered by Google App Engine
This is Rietveld 408576698