Bug 95812

Summary: Add 8 bit string data path to TextRun
Product: WebKit Reporter: Michael Saboff <msaboff>
Component: TextAssignee: Michael Saboff <msaboff>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, eric, esprehn, gustavo, inferno, jochen, noam, peter+ews, philn, tonyg, webkit.review.bot, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 128698    
Attachments:
Description Flags
Patch
mitz: review+, gyuyoung.kim: commit-queue-
Patch with fixes for failing platforms
none
Performance results from last posted patch
none
Fixed indent style issue.
buildbot: commit-queue-
Patch to fix truncation compile error mitz: review+

Michael Saboff
Reported 2012-09-04 18:30:50 PDT
As part of adding an 8 bit path to the text rendering code, the TextRun class and code using it need to handle 8 bit strings.
Attachments
Patch (20.33 KB, patch)
2012-09-05 11:38 PDT, Michael Saboff
mitz: review+
gyuyoung.kim: commit-queue-
Patch with fixes for failing platforms (29.66 KB, patch)
2012-09-06 08:47 PDT, Michael Saboff
no flags
Performance results from last posted patch (24.24 KB, application/pdf)
2012-09-06 08:50 PDT, Michael Saboff
no flags
Fixed indent style issue. (29.65 KB, patch)
2012-09-06 08:57 PDT, Michael Saboff
buildbot: commit-queue-
Patch to fix truncation compile error (28.72 KB, patch)
2012-09-06 09:51 PDT, Michael Saboff
mitz: review+
Michael Saboff
Comment 1 2012-09-05 11:38:39 PDT
Gyuyoung Kim
Comment 2 2012-09-05 12:23:53 PDT
Early Warning System Bot
Comment 3 2012-09-05 12:27:16 PDT
Build Bot
Comment 4 2012-09-05 12:51:50 PDT
Eric Seidel (no email)
Comment 5 2012-09-05 13:00:26 PDT
Very exciting. Isn't this a perf change? Do we have perf data?
Early Warning System Bot
Comment 6 2012-09-05 13:19:39 PDT
Michael Saboff
Comment 7 2012-09-05 13:57:35 PDT
(In reply to comment #5) > Very exciting. > > Isn't this a perf change? Do we have perf data? I don't have data yet. I expect that tho should have little impact as it is mostly renaming for the current 16 bit paths. The TextRun::operator[] is the big concern. If that is an issue, I'll refactor to separate 8 and 16 bit accessors methods. I'll be running test and posting results. In addition to the Layout tests, do you have others you'd like to see? Now to fix all of the platform specific code from EWS failures.
Peter Beverloo (cr-android ews)
Comment 8 2012-09-05 15:28:51 PDT
Comment on attachment 162296 [details] Patch Attachment 162296 [details] did not pass cr-android-ews (chromium-android): Output: http://queues.webkit.org/results/13755917
WebKit Review Bot
Comment 9 2012-09-05 20:52:23 PDT
Comment on attachment 162296 [details] Patch Attachment 162296 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13771163
Michael Saboff
Comment 10 2012-09-06 08:47:27 PDT
Created attachment 162515 [details] Patch with fixes for failing platforms Fixed the non-Mac platforms by changing the calls to characters() and data() to characters16() and data16() and by disallowing the creation of 8 bit text runs via compile switches. These other platforms will have to make the appropriate changes after the patch lands.
Michael Saboff
Comment 11 2012-09-06 08:50:31 PDT
Created attachment 162516 [details] Performance results from last posted patch Results of Performance/Layout tests before and after the latest patch. Ran tests 8 times and averaged the results.
WebKit Review Bot
Comment 12 2012-09-06 08:51:22 PDT
Attachment 162515 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/platform/graphics/Font.cpp:269: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1 in 17 files If any of these errors are false positives, please file a bug against check-webkit-style.
Michael Saboff
Comment 13 2012-09-06 08:57:17 PDT
Created attachment 162518 [details] Fixed indent style issue.
Build Bot
Comment 14 2012-09-06 09:11:04 PDT
Comment on attachment 162518 [details] Fixed indent style issue. Attachment 162518 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/13772327
Early Warning System Bot
Comment 15 2012-09-06 09:25:59 PDT
Comment on attachment 162518 [details] Fixed indent style issue. Attachment 162518 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/13776314
Michael Saboff
Comment 16 2012-09-06 09:51:32 PDT
Created attachment 162527 [details] Patch to fix truncation compile error Reverted templated normalizeSpaces() in Font.h to UChar only as it isn't on fast path.
mitz
Comment 17 2012-09-06 15:06:49 PDT
Comment on attachment 162527 [details] Patch to fix truncation compile error View in context: https://bugs.webkit.org/attachment.cgi?id=162527&action=review > Source/WebCore/ChangeLog:11 > + been renamed and the creation of 8 bit tet runs has been disabled via compilation Typo: tet. > Source/WebCore/ChangeLog:12 > + flags. Someone knowledgible in those platforms will need to make corresponding changes Typo: knowledgible.
Michael Saboff
Comment 18 2012-09-06 16:52:27 PDT
Note You need to log in before you can comment on or make changes to this bug.