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

Issue 2342273003: Refine FontLoadHistograms::recordRemoteFont() logic (Closed)

Created:
4 years, 3 months ago by Shao-Chuan Lee
Modified:
4 years, 3 months ago
CC:
chromium-reviews, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis, Takashi Toyoshima
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refine FontLoadHistograms::recordRemoteFont() logic 1. Move cacheHitHistogram count out of if statement to include memory cache hits, whose |m_loadStartTime| is 0. 2. Remove redundant checks in if statement. After previous refactoring, recordRemoteFont() is now only called once from notifyFinished(), and |font| here is always available and loaded. 3. Use DataSource to determine cases to record load time (data URL loads have non-zero |m_loadStartTime| but should complete immediately). Committed: https://crrev.com/e07469c81053c55c60a64a8ea55e919f7524b619 Cr-Commit-Position: refs/heads/master@{#419144}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fixup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -4 lines) Patch
M third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp View 1 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Shao-Chuan Lee
PTAL recordRemoteFont() used to be called from FontResourceClient::fontLoaded(), which was removed in https://codereview.chromium.org/1894953002.
4 years, 3 months ago (2016-09-16 08:22:34 UTC) #2
Kunihiko Sakamoto
https://codereview.chromium.org/2342273003/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2342273003/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode274 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:274: m_loadStartTime = -1; We can remove this line, as ...
4 years, 3 months ago (2016-09-16 09:03:15 UTC) #3
Shao-Chuan Lee
https://codereview.chromium.org/2342273003/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2342273003/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode274 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:274: m_loadStartTime = -1; On 2016/09/16 09:03:15, Kunihiko Sakamoto wrote: ...
4 years, 3 months ago (2016-09-16 09:23:17 UTC) #4
Kunihiko Sakamoto
lgtm
4 years, 3 months ago (2016-09-16 09:24:54 UTC) #5
Shao-Chuan Lee
haraken@chromium.org: PTAL
4 years, 3 months ago (2016-09-16 09:27:13 UTC) #7
haraken
LGTM
4 years, 3 months ago (2016-09-16 09:55:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2342273003/20001
4 years, 3 months ago (2016-09-16 10:26:07 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-16 11:30:41 UTC) #11
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 11:33:02 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e07469c81053c55c60a64a8ea55e919f7524b619
Cr-Commit-Position: refs/heads/master@{#419144}

Powered by Google App Engine
This is Rietveld 408576698