| Index: remoting/host/video_scheduler.cc
|
| diff --git a/remoting/host/video_scheduler.cc b/remoting/host/video_scheduler.cc
|
| index a346d04c254898e7ff482099025d70efec8a5e13..ec65f6e6138a70ac64e2051d8cf11ca4aea2cc88 100644
|
| --- a/remoting/host/video_scheduler.cc
|
| +++ b/remoting/host/video_scheduler.cc
|
| @@ -168,6 +168,30 @@ void VideoScheduler::UpdateSequenceNumber(int64 sequence_number) {
|
| sequence_number_ = sequence_number;
|
| }
|
|
|
| +void VideoScheduler::SetLosslessEncode(bool want_lossless) {
|
| + if (!encode_task_runner_->BelongsToCurrentThread()) {
|
| + DCHECK(network_task_runner_->BelongsToCurrentThread());
|
| + encode_task_runner_->PostTask(
|
| + FROM_HERE, base::Bind(&VideoScheduler::SetLosslessEncode,
|
| + this, want_lossless));
|
| + return;
|
| + }
|
| +
|
| + encoder_->SetLosslessEncode(want_lossless);
|
| +}
|
| +
|
| +void VideoScheduler::SetLosslessColor(bool want_lossless) {
|
| + if (!encode_task_runner_->BelongsToCurrentThread()) {
|
| + DCHECK(network_task_runner_->BelongsToCurrentThread());
|
| + encode_task_runner_->PostTask(
|
| + FROM_HERE, base::Bind(&VideoScheduler::SetLosslessColor,
|
| + this, want_lossless));
|
| + return;
|
| + }
|
| +
|
| + encoder_->SetLosslessColor(want_lossless);
|
| +}
|
| +
|
| // Private methods -----------------------------------------------------------
|
|
|
| VideoScheduler::~VideoScheduler() {
|
|
|