|
Support performance.now() in workers, behind a runtime flag.
performance.now() provides a high resolution monotonic clock. The time values start at an "origin time" instead of the typical UNIX epoch. For shared workers, the origin time is the time when the shared worker was created. For dedicated workers, the origin time is its document's navigationStart. That means performance.now() in the document and the dedicated worker should return values in the same range.
BUG= 169318
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152396
Total comments: 16
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+266 lines, -86 lines) |
Patch |
 |
A |
LayoutTests/http/tests/w3c/webperf/resources/worker.js
|
View
|
1
2
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/http/tests/w3c/webperf/submission/Google/HighResolutionTime/worker-dedicated-basic.html
|
View
|
1
2
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/http/tests/w3c/webperf/submission/Google/HighResolutionTime/worker-dedicated-basic-expected.txt
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/http/tests/w3c/webperf/submission/Google/HighResolutionTime/worker-shared-basic.html
|
View
|
1
2
|
1 chunk |
+70 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/http/tests/w3c/webperf/submission/Google/HighResolutionTime/worker-shared-basic-expected.txt
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/DocumentLoadTiming.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/RuntimeEnabledFeatures.in
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/workers/DedicatedWorkerContext.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/workers/DedicatedWorkerContext.cpp
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/workers/DedicatedWorkerThread.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/workers/DedicatedWorkerThread.cpp
|
View
|
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/workers/SharedWorkerContext.cpp
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/workers/WorkerContext.h
|
View
|
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/workers/WorkerContext.cpp
|
View
|
1
2
3
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/workers/WorkerMessagingProxy.cpp
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/modules/modules.gypi
|
View
|
1
2
3
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
A |
Source/modules/performance/OWNERS
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
Source/modules/performance/WorkerContextPerformance.h
|
View
|
1
2
|
1 chunk |
+14 lines, -14 lines |
0 comments
|
Download
|
 |
A + |
Source/modules/performance/WorkerContextPerformance.cpp
|
View
|
1
2
3
|
1 chunk |
+19 lines, -21 lines |
3 comments
|
Download
|
 |
A + |
Source/modules/performance/WorkerContextPerformance.idl
|
View
|
|
1 chunk |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
A + |
Source/modules/performance/WorkerPerformance.h
|
View
|
1
2
|
1 chunk |
+11 lines, -16 lines |
3 comments
|
Download
|
 |
A + |
Source/modules/performance/WorkerPerformance.cpp
|
View
|
1
2
3
|
1 chunk |
+13 lines, -10 lines |
1 comment
|
Download
|
 |
A + |
Source/modules/performance/WorkerPerformance.idl
|
View
|
1
2
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
Total messages: 18 (0 generated)
|