| Index: remoting/client/plugin/pepper_view.cc
|
| diff --git a/remoting/client/plugin/pepper_view.cc b/remoting/client/plugin/pepper_view.cc
|
| index 531ff6ca29a94e45305d5f136f5a962d913ea2cc..35976e4efe2babacad8b22a0869d5cdc7030c10a 100644
|
| --- a/remoting/client/plugin/pepper_view.cc
|
| +++ b/remoting/client/plugin/pepper_view.cc
|
| @@ -96,7 +96,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;
|
| @@ -117,7 +117,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:
|
| @@ -188,7 +188,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());
|
|
|
| if (!frame_received_) {
|
| instance_->OnFirstFrameReceived();
|
| @@ -208,7 +208,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_) {
|
| @@ -228,7 +228,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;
|
| @@ -337,7 +337,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(
|
|
|