Bug 104410 - [Chromium-Android] Use harfbuzz-ng instead of harfbuzz-old on Android
Summary: [Chromium-Android] Use harfbuzz-ng instead of harfbuzz-old on Android
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Android Android
: P2 Normal
Assignee: Xianzhu Wang
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-07 16:12 PST by Xianzhu Wang
Modified: 2012-12-21 16:22 PST (History)
12 users (show)

See Also:


Attachments
Patch (5.23 KB, patch)
2012-12-10 13:39 PST, Xianzhu Wang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xianzhu Wang 2012-12-07 16:12:18 PST
It's really critical to switch to harfbuzz-ng because so many bugs are resolved with the switch.
Comment 1 Xianzhu Wang 2012-12-10 13:39:59 PST
Created attachment 178624 [details]
Patch
Comment 2 Xianzhu Wang 2012-12-10 13:43:41 PST
Just enabled harfbuzz-ng in gyp without any C++ code change. The original Android-specific code in ComplexTextControllerHarfBuzz.cpp (depending on harfbuzz-old) is not needed in the new code path because we already have proper font fallback mechanism on in Skia for Android and used it in WebKit.

Perhaps we should cleanup the obsolete code if no one uses harfbuzz-old.
Comment 3 Peter Beverloo 2012-12-12 04:01:36 PST
Do we want this before the M25 branch point? It seems like a risky change to do on such short notice..
Comment 4 Xianzhu Wang 2012-12-12 09:05:51 PST
(In reply to comment #3)
> Do we want this before the M25 branch point? It seems like a risky change to do on such short notice..

This is not urgent. I think we can land it after M25 branch point.
Comment 5 Eric Seidel (no email) 2012-12-12 10:30:20 PST
I doubt its particularly risky, given that linux has been on ng for several months iirc.  But there is also no hurry in my view.
Comment 6 Eric Seidel (no email) 2012-12-12 10:32:10 PST
Comment on attachment 178624 [details]
Patch

Lgtm, but be sure to coordinate with peter wrt when this should be landed.
Comment 7 Tony Chang 2012-12-12 11:24:29 PST
Is anyone still on old harfbuzz after this change?  Can we delete the old harfbuzz code (there was some extra abstraction to handle both).
Comment 8 Peter Beverloo 2012-12-13 06:28:55 PST
(In reply to comment #5)
> I doubt its particularly risky, given that linux has been on ng for several months iirc.  But there is also no hurry in my view.

We used to have a few modifications in harfbuzz in regards to memory usage, switching Android to harfbuzz-ng just before the branch point can have unexpected side-effects unless it's really thoroughly tested. While it's not a particularly risky change, it's safer to do it in the M26 period. The amount of issues we have with M25 is rather high as it is.

Landing this on Tuesday morning (assuming branch occurs on Monday) is perfectly fine with me. Thanks for doing this, Xianzhu!
Comment 9 WebKit Review Bot 2012-12-21 15:28:57 PST
Comment on attachment 178624 [details]
Patch

Clearing flags on attachment: 178624

Committed r138401: <http://trac.webkit.org/changeset/138401>
Comment 10 WebKit Review Bot 2012-12-21 15:29:01 PST
All reviewed patches have been landed.  Closing bug.
Comment 11 Behdad Esfahbod 2012-12-21 16:22:43 PST
Awesome!  Thanks everyone.