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

Issue 519373002: Return width from drawText to stop re-measure in Canvas (Closed)

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

Description

Return width from drawText to stop re-measure in Canvas Allowing drawText to return width of what was drawn, so that we don't have to make call to width to re-measure in Canvas drawing. R=eae@chromium.org BUG=410706 TEST=TEST=fast/canvas/canvas-drawtext-width-return.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181703

Patch Set 1 #

Patch Set 2 : Fixing error #

Patch Set 3 : Adding Layout test case #

Patch Set 4 : Updating Test Expectation file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -34 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/canvas-drawtext-width-return.html View 1 2 1 chunk +82 lines, -0 lines 0 comments Download
M Source/platform/fonts/Font.h View 1 4 chunks +5 lines, -5 lines 0 comments Download
M Source/platform/fonts/Font.cpp View 1 2 3 8 chunks +20 lines, -14 lines 0 comments Download
M Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp View 1 2 3 3 chunks +7 lines, -6 lines 0 comments Download
M Source/platform/fonts/mac/FontComplexTextMac.cpp View 1 2 chunks +4 lines, -5 lines 0 comments Download
M Source/platform/fonts/mac/FontMac.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/GraphicsContext.cpp View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
h.joshi
eae/bendad: Pls review
6 years, 3 months ago (2014-09-08 13:23:13 UTC) #5
h.joshi
Sorry for the typo: @eae/behdad: Pls review
6 years, 3 months ago (2014-09-08 13:23:52 UTC) #6
eae
Is this guaranteed to always return the same width as re-measuring it would? Would be ...
6 years, 3 months ago (2014-09-08 14:34:46 UTC) #7
h.joshi
Yes drawText will return same width as "font.width", I tested with different string as well ...
6 years, 3 months ago (2014-09-09 12:03:55 UTC) #8
eae
LGTM Thanks for the explanation and adding the test. I updated the description accordingly.
6 years, 3 months ago (2014-09-09 19:27:36 UTC) #9
h.joshi
Thank you Emil.
6 years, 3 months ago (2014-09-10 02:38:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/h.joshi@samsung.com/519373002/100001
6 years, 3 months ago (2014-09-10 02:40:23 UTC) #12
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-10 04:41:01 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/h.joshi@samsung.com/519373002/120001
6 years, 3 months ago (2014-09-10 05:04:42 UTC) #16
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 06:12:37 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as 181703

Powered by Google App Engine
This is Rietveld 408576698