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

Issue 440773003: linux: Cache GetFontRenderParams() results. (Closed)

Created:
6 years, 4 months ago by Daniel Erat
Modified:
6 years, 4 months ago
Reviewers:
msw
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

linux: Cache GetFontRenderParams() results. Make the Linux implementation of GetFontRenderParams() cache the ten most recent results to greatly reduce the number of Fontconfig queries that are performed. BUG=376077, 391830 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287977

Patch Set 1 #

Total comments: 18

Patch Set 2 : apply review feedback #

Patch Set 3 : remove ifdef from header and add todo #

Patch Set 4 : whoops, rename function calls in tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -1 line) Patch
M ui/gfx/font_render_params.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M ui/gfx/font_render_params_linux.cc View 1 4 chunks +46 lines, -1 line 0 comments Download
M ui/gfx/font_render_params_linux_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Daniel Erat
for your consideration. i suspect that i'd also need to update the blink test harness ...
6 years, 4 months ago (2014-08-04 23:44:43 UTC) #1
msw
https://codereview.chromium.org/440773003/diff/1/ui/gfx/font_render_params.h File ui/gfx/font_render_params.h (right): https://codereview.chromium.org/440773003/diff/1/ui/gfx/font_render_params.h#newcode96 ui/gfx/font_render_params.h:96: GFX_EXPORT void DropFontRenderParamsCacheForTest(); nit: s/Drop/Clear/ https://codereview.chromium.org/440773003/diff/1/ui/gfx/font_render_params.h#newcode96 ui/gfx/font_render_params.h:96: GFX_EXPORT void ...
6 years, 4 months ago (2014-08-05 00:55:10 UTC) #2
msw
You may also want to do some measurements, to see the number of calls that ...
6 years, 4 months ago (2014-08-05 01:11:37 UTC) #3
Daniel Erat
i added some logging earlier; here are more-detailed numbers: during startup: - params computed 15 ...
6 years, 4 months ago (2014-08-06 17:43:13 UTC) #4
msw
On 2014/08/06 17:43:13, Daniel Erat wrote: > i added some logging earlier; here are more-detailed ...
6 years, 4 months ago (2014-08-06 19:31:38 UTC) #5
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 4 months ago (2014-08-06 21:06:34 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/440773003/40001
6 years, 4 months ago (2014-08-06 21:08:17 UTC) #7
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 4 months ago (2014-08-06 21:30:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/440773003/60001
6 years, 4 months ago (2014-08-06 21:33:59 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-07 02:26:51 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-07 02:52:38 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_triggered_tests/builds/3116)
6 years, 4 months ago (2014-08-07 02:52:39 UTC) #12
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 4 months ago (2014-08-07 03:19:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/440773003/60001
6 years, 4 months ago (2014-08-07 03:21:50 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-07 05:19:45 UTC) #15
commit-bot: I haz the power
6 years, 4 months ago (2014-08-07 07:07:16 UTC) #16
Message was sent while issue was closed.
Change committed as 287977

Powered by Google App Engine
This is Rietveld 408576698