|
Optimize posting of WTF::Closure and improve scheduler test mocks
Previously posting a WTF::Closure (which contains a
base::Closure) resulted in it getting wrapped in a WebTaskRunner::Task
which was then wrapped in a base::Closure!
We fix that here by posting the wrapped base::Closure directly.
We also and refactor the various blink scheduler mocks to use
either a real scheduler or a centralized FakeWebTaskRunner.
At Sami's request taskRunner has been renamed to
toSingleThreadTaskRunner.
BUG= 638542
Committed: https://crrev.com/4dab46210f989c26fb3cb40064a8d60846015f38
Cr-Commit-Position: refs/heads/master@{#414834}
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+392 lines, -826 lines) |
Patch |
|
M |
content/child/web_url_loader_impl.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp
|
View
|
|
11 chunks |
+18 lines, -18 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp
|
View
|
|
3 chunks |
+3 lines, -12 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp
|
View
|
1
2
3
|
3 chunks |
+3 lines, -14 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
|
View
|
1
2
3
|
3 chunks |
+3 lines, -34 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp
|
View
|
|
5 chunks |
+8 lines, -66 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/DEPS
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/TimerTest.cpp
|
View
|
1
2
3
|
24 chunks |
+114 lines, -377 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/WebTaskRunner.cpp
|
View
|
1
2
3
|
1 chunk |
+4 lines, -40 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/blink_platform.gypi
|
View
|
1
2
3
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -125 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.h
|
View
|
1
2
3
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.cc
|
View
|
1
2
3
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
|
View
|
1
2
|
4 chunks |
+48 lines, -34 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
|
View
|
1
2
3
|
3 chunks |
+91 lines, -99 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/platform/WebTaskRunner.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 42 (29 generated)
|