| Index: remoting/client/plugin/pepper_view.cc
|
| diff --git a/remoting/client/plugin/pepper_view.cc b/remoting/client/plugin/pepper_view.cc
|
| index 6b67eacf77cf674332e270353e812ee77e032fbb..d7d1bf1548ee34e313d813abbd760605c298cf22 100644
|
| --- a/remoting/client/plugin/pepper_view.cc
|
| +++ b/remoting/client/plugin/pepper_view.cc
|
| @@ -95,7 +95,7 @@ bool PepperView::Initialize() {
|
| }
|
|
|
| void PepperView::TearDown() {
|
| - DCHECK(context_->main_message_loop()->BelongsToCurrentThread());
|
| + DCHECK(context_->main_task_runner()->BelongsToCurrentThread());
|
| DCHECK(is_initialized_);
|
|
|
| is_initialized_ = false;
|
| @@ -116,7 +116,7 @@ void PepperView::TearDown() {
|
|
|
| void PepperView::SetConnectionState(protocol::ConnectionToHost::State state,
|
| protocol::ErrorCode error) {
|
| - DCHECK(context_->main_message_loop()->BelongsToCurrentThread());
|
| + DCHECK(context_->main_task_runner()->BelongsToCurrentThread());
|
|
|
| switch (state) {
|
| case protocol::ConnectionToHost::CONNECTING:
|
| @@ -183,7 +183,7 @@ void PepperView::ApplyBuffer(const SkISize& view_size,
|
| const SkIRect& clip_area,
|
| pp::ImageData* buffer,
|
| const SkRegion& region) {
|
| - DCHECK(context_->main_message_loop()->BelongsToCurrentThread());
|
| + DCHECK(context_->main_task_runner()->BelongsToCurrentThread());
|
|
|
| // Currently we cannot use the data in the buffer is scale factor has changed
|
| // already.
|
| @@ -199,7 +199,7 @@ void PepperView::ApplyBuffer(const SkISize& view_size,
|
| }
|
|
|
| void PepperView::ReturnBuffer(pp::ImageData* buffer) {
|
| - DCHECK(context_->main_message_loop()->BelongsToCurrentThread());
|
| + DCHECK(context_->main_task_runner()->BelongsToCurrentThread());
|
|
|
| // Free the buffer if there is nothing to paint.
|
| if (!is_initialized_) {
|
| @@ -219,7 +219,7 @@ void PepperView::ReturnBuffer(pp::ImageData* buffer) {
|
| }
|
|
|
| void PepperView::SetSourceSize(const SkISize& source_size) {
|
| - DCHECK(context_->main_message_loop()->BelongsToCurrentThread());
|
| + DCHECK(context_->main_task_runner()->BelongsToCurrentThread());
|
|
|
| if (source_size_ == source_size)
|
| return;
|
| @@ -328,7 +328,7 @@ void PepperView::FlushBuffer(const SkIRect& clip_area,
|
| void PepperView::OnFlushDone(base::Time paint_start,
|
| pp::ImageData* buffer,
|
| int result) {
|
| - DCHECK(context_->main_message_loop()->BelongsToCurrentThread());
|
| + DCHECK(context_->main_task_runner()->BelongsToCurrentThread());
|
| DCHECK(flush_pending_);
|
|
|
| instance_->GetStats()->video_paint_ms()->Record(
|
|
|