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

Issue 2622283007: Added DCHECK for monotonicTimeToDOMHighResTimeStamp in PerformanceBase (Closed)

Created:
3 years, 11 months ago by sunjian
Modified:
3 years, 11 months ago
CC:
chromium-reviews, blink-reviews, dshwang, blink-reviews-paint_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added DCHECK for monotonicTimeToDOMHighResTimeStamp in PerformanceBase. A few tests in FirstMeaningfulPaintDetectorTest break the DCHECK. Need to reset the initial value of their mock time function to be timeOrigin that was set in PerformanceBase. BUG=680623 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2622283007 Cr-Commit-Position: refs/heads/master@{#444134} Committed: https://chromium.googlesource.com/chromium/src/+/eeda089e4c29b7ed01c16c7e95987b28cf8c5620

Patch Set 1 #

Patch Set 2 : keep mockTime and set s_timeElapsed as timeOrigin #

Total comments: 4

Patch Set 3 : reformat #

Total comments: 2

Patch Set 4 : added comments for monotonicTimeToDOMHighResTimeStamp in PerformanceBase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
M third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp View 1 2 4 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceBase.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceBase.cpp View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
sunjian
3 years, 11 months ago (2017-01-12 22:00:08 UTC) #3
sunjian
3 years, 11 months ago (2017-01-12 22:25:52 UTC) #4
panicker
https://codereview.chromium.org/2622283007/diff/20001/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp File third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp (right): https://codereview.chromium.org/2622283007/diff/20001/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp#newcode51 third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp:51: double timeOrigin() { Update CL description mentioning why this ...
3 years, 11 months ago (2017-01-13 19:11:59 UTC) #7
sunjian
Addressed comments. Please take another look. https://codereview.chromium.org/2622283007/diff/20001/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp File third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp (right): https://codereview.chromium.org/2622283007/diff/20001/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp#newcode51 third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp:51: double timeOrigin() { ...
3 years, 11 months ago (2017-01-13 19:49:34 UTC) #9
panicker
LGTM. +skobes for owners.
3 years, 11 months ago (2017-01-13 22:00:15 UTC) #11
skobes
What's the motivation for this change? The bug report has very little context. Commit messages ...
3 years, 11 months ago (2017-01-13 22:31:44 UTC) #12
sunjian
Addressed comments. Please take another look. https://codereview.chromium.org/2622283007/diff/40001/third_party/WebKit/Source/core/timing/PerformanceBase.cpp File third_party/WebKit/Source/core/timing/PerformanceBase.cpp (right): https://codereview.chromium.org/2622283007/diff/40001/third_party/WebKit/Source/core/timing/PerformanceBase.cpp#newcode572 third_party/WebKit/Source/core/timing/PerformanceBase.cpp:572: DOMHighResTimeStamp PerformanceBase::monotonicTimeToDOMHighResTimeStamp( On ...
3 years, 11 months ago (2017-01-14 01:04:32 UTC) #14
skobes
lgtm
3 years, 11 months ago (2017-01-14 01:32:43 UTC) #15
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/2622283007/80001
3 years, 11 months ago (2017-01-17 19:21:55 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:80001) as https://chromium.googlesource.com/chromium/src/+/eeda089e4c29b7ed01c16c7e95987b28cf8c5620
3 years, 11 months ago (2017-01-17 20:49:38 UTC) #21
sunjian
3 years, 11 months ago (2017-01-25 21:17:57 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:80001) has been created in
https://codereview.chromium.org/2655123002/ by sunjian@chromium.org.

The reason for reverting is: * in chrome on android, go to google.com
* click on sign in at top left
* start typing in the input box for user name (I was trying to type
"webviewteam")
* crash

Fix: potentially get rid of the DCHECK and add an if statement to make sure the
output time is never negative..

Powered by Google App Engine
This is Rietveld 408576698