Tommi
8b0ebb9484
Change FakePeriodicVideoCapturer to use a TaskQueue instead of Thread.
...
This changes callbacks to OnFrame methods to occur on a task queue which
is in line with how it's called in production.
The change is essentially around inheriting from FakeVideoCapturerWithTaskQueue
instead of FakeVideoCapturer, but also removes the dependency on rtc::MessageHandler.
Along the way I'm also updating an ortc test that uses FakePeriodicVideoCapturer
and had a bug that was masked by the fact that FakePeriodicVideoCapturer
previously used rtc::Thread::Current internally, but was being called
by the wrong thread (and there were no checks for it).
As a result, I'm also adding a bunch of checks to help with correct usage.
Bug: webrtc:8841, webrtc:8848
Change-Id: I21b710873b508ebc55f8d2e4545d862766656871
Reviewed-on: https://webrtc-review.googlesource.com/49400
Commit-Queue: Tommi <tommi@webrtc.org>
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21951}
2018-02-07 20:51:51 +00:00
..
2018-02-07 20:51:51 +00:00
2018-01-30 09:48:29 +00:00
2017-11-28 21:29:18 +00:00
2018-02-07 20:51:51 +00:00
2018-01-17 10:33:55 +00:00
2018-01-30 09:48:29 +00:00
2018-01-30 09:48:29 +00:00
2017-12-04 22:27:39 +00:00
2017-12-04 22:27:39 +00:00
2017-12-04 22:27:39 +00:00
2018-01-31 08:33:59 +00:00
2017-10-30 18:08:29 +00:00
2018-01-30 09:48:29 +00:00
2017-10-30 18:08:29 +00:00
2017-11-09 11:56:32 +00:00
2018-02-06 10:38:19 +00:00
2017-12-04 22:27:39 +00:00
2017-11-29 19:38:39 +00:00
2017-11-30 02:17:09 +00:00
2017-09-15 12:51:00 +00:00
2017-11-09 11:56:32 +00:00
2017-12-22 00:22:23 +00:00
2017-12-12 09:27:07 +00:00
2017-11-09 11:56:32 +00:00
2017-12-22 00:17:53 +00:00
2018-02-01 21:17:41 +00:00
2017-12-19 20:50:41 +00:00
2017-12-19 20:50:41 +00:00
2017-12-20 00:21:52 +00:00
2017-11-21 17:53:37 +00:00
2018-01-22 17:32:58 +00:00
2018-01-30 23:07:28 +00:00
2018-02-01 21:17:41 +00:00
2018-02-01 21:17:41 +00:00
2017-10-30 18:08:29 +00:00
2018-02-03 19:28:58 +00:00
2018-01-19 20:32:23 +00:00
2018-01-19 23:28:53 +00:00
2018-01-20 00:50:53 +00:00
2018-02-06 19:19:54 +00:00
2018-01-27 23:48:36 +00:00
2018-02-01 19:58:31 +00:00
2018-01-27 02:20:29 +00:00
2018-02-01 21:17:41 +00:00
2018-02-06 19:19:54 +00:00
2018-02-06 19:19:54 +00:00
2018-02-06 19:02:44 +00:00
2018-01-25 04:03:18 +00:00
2018-02-07 16:42:01 +00:00
2018-02-03 07:06:49 +00:00
2018-02-03 07:06:49 +00:00
2018-02-03 07:06:49 +00:00
2018-02-06 19:02:44 +00:00
2018-01-27 02:20:29 +00:00
2018-01-27 02:20:29 +00:00
2017-09-15 12:51:00 +00:00
2018-01-18 19:01:38 +00:00
2018-01-18 19:01:38 +00:00
2017-11-09 11:56:32 +00:00
2017-12-20 00:21:52 +00:00
2017-12-13 12:25:42 +00:00
2018-02-03 00:47:27 +00:00
2018-02-06 19:02:44 +00:00
2018-02-06 19:02:44 +00:00
2018-01-27 02:20:29 +00:00
2018-01-27 02:20:29 +00:00
2018-01-27 02:20:29 +00:00
2018-01-18 19:01:38 +00:00
2018-01-18 19:01:38 +00:00
2018-01-25 19:06:04 +00:00
2018-01-25 19:06:04 +00:00
2018-01-25 19:06:04 +00:00
2018-01-13 01:44:04 +00:00
2018-01-11 00:16:44 +00:00
2017-11-21 16:43:07 +00:00
2017-11-29 19:38:39 +00:00
2017-11-29 19:38:39 +00:00
2017-11-29 19:38:39 +00:00
2017-11-20 23:18:22 +00:00
2017-11-09 11:56:32 +00:00
2017-12-07 19:08:47 +00:00
2017-12-20 00:21:52 +00:00
2017-12-22 00:17:53 +00:00
2018-02-01 21:17:41 +00:00
2017-11-15 13:31:51 +00:00
2017-11-21 17:53:37 +00:00
2017-12-20 00:21:52 +00:00
2017-11-11 01:14:35 +00:00
2017-11-11 01:14:35 +00:00
2017-11-11 01:14:35 +00:00
2017-12-04 22:27:39 +00:00
2017-12-04 22:27:39 +00:00
2017-12-04 22:27:39 +00:00
2018-02-03 00:47:27 +00:00
2018-02-06 19:02:44 +00:00
2018-01-24 17:24:29 +00:00
2018-02-06 19:02:44 +00:00
2018-02-06 19:02:44 +00:00
2018-02-06 19:02:44 +00:00
2018-01-14 09:35:07 +00:00
2018-02-03 07:06:49 +00:00
2018-02-03 07:06:49 +00:00
2018-02-07 14:25:08 +00:00
2017-11-21 17:53:37 +00:00
2017-10-30 18:08:29 +00:00
2018-01-04 13:19:49 +00:00
2018-02-01 21:17:41 +00:00
2018-02-01 21:17:41 +00:00
2018-02-01 21:17:41 +00:00
2018-01-24 17:24:29 +00:00
2018-01-24 17:24:29 +00:00