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

Issue 27527003: Skip per-script font preferences registration and filling on Android. (Closed)

Created:
7 years, 2 months ago by ppi
Modified:
7 years, 2 months ago
CC:
chromium-reviews, bulach, Philippe
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Skip per-script font preferences registration and filling on Android. Per-script font preferences have no default values on Android, nor is there a way to set them. By disabling the registration and filling of these preferences we save ~40ms on each renderer startup and ~10ms on each browser start. http://crbug.com/308095 was spawned to track optimizing this code path for platforms that use per-script font preferences. BUG=308033 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229356

Patch Set 1 : #

Total comments: 3

Patch Set 2 : Don't register the per-script preferences on Android. #

Total comments: 2

Patch Set 3 : Address falken's remark. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 3 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
ppi
Could you guys have a look?
7 years, 2 months ago (2013-10-16 16:09:21 UTC) #1
Yaron
https://codereview.chromium.org/27527003/diff/3001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/27527003/diff/3001/chrome/browser/chrome_content_browser_client.cc#newcode2098 chrome/browser/chrome_content_browser_client.cc:2098: #if !defined(OS_ANDROID) Theres' some related code in chrome/browser/ui/prefs/prefs_tab_helper.cc to ...
7 years, 2 months ago (2013-10-16 16:24:13 UTC) #2
tony
If these are rarely set, we should fix the code to be fast on all ...
7 years, 2 months ago (2013-10-16 16:37:48 UTC) #3
ppi
Tony, I agree. I spawned https://code.google.com/p/chromium/issues/detail?id=308095 to track that, but I'd prefer to address this ...
7 years, 2 months ago (2013-10-16 18:02:35 UTC) #4
Yaron
https://codereview.chromium.org/27527003/diff/3001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/27527003/diff/3001/chrome/browser/chrome_content_browser_client.cc#newcode2098 chrome/browser/chrome_content_browser_client.cc:2098: #if !defined(OS_ANDROID) On 2013/10/16 18:02:36, ppi wrote: > On ...
7 years, 2 months ago (2013-10-16 18:08:53 UTC) #5
tony
On 2013/10/16 18:02:35, ppi wrote: > Tony, I agree. I spawned > https://code.google.com/p/chromium/issues/detail?id=308095 to track ...
7 years, 2 months ago (2013-10-16 18:26:49 UTC) #6
falken
+bauerb, jshin Since the per-script font prefs are not in a dictionary (each is an ...
7 years, 2 months ago (2013-10-17 08:37:52 UTC) #7
Bernhard Bauer
On 2013/10/17 08:37:52, falken wrote: > +bauerb, jshin > > Since the per-script font prefs ...
7 years, 2 months ago (2013-10-17 09:25:26 UTC) #8
ppi
Thanks, everyone! In patch set 2 I disabled registration of the preferences altogether on Android. ...
7 years, 2 months ago (2013-10-17 12:07:45 UTC) #9
Bernhard Bauer
On 2013/10/17 12:07:45, ppi wrote: > Thanks, everyone! > > In patch set 2 I ...
7 years, 2 months ago (2013-10-17 12:12:23 UTC) #10
falken
lgtm https://codereview.chromium.org/27527003/diff/17001/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): https://codereview.chromium.org/27527003/diff/17001/chrome/browser/ui/prefs/prefs_tab_helper.cc#newcode149 chrome/browser/ui/prefs/prefs_tab_helper.cc:149: // way to set them, so we can ...
7 years, 2 months ago (2013-10-17 12:23:28 UTC) #11
tony
On 2013/10/17 12:12:23, Bernhard Bauer wrote: > On 2013/10/17 12:07:45, ppi wrote: > > Thanks, ...
7 years, 2 months ago (2013-10-17 16:43:12 UTC) #12
ppi
Thanks, everyone! Tony, sorry I did not get your comments right - I am not ...
7 years, 2 months ago (2013-10-17 16:49:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/27527003/26001
7 years, 2 months ago (2013-10-17 16:57:37 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/27527003/26001
7 years, 2 months ago (2013-10-18 01:44:58 UTC) #15
commit-bot: I haz the power
7 years, 2 months ago (2013-10-18 11:18:51 UTC) #16
Message was sent while issue was closed.
Change committed as 229356

Powered by Google App Engine
This is Rietveld 408576698