Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Unified Diff: remoting/client/plugin/pepper_view.cc

Issue 10454018: MessageLoopProxy cleanups in remoting client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698