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

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, 6 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
« no previous file with comments | « remoting/client/plugin/pepper_network_manager.cc ('k') | remoting/client/plugin/pepper_xmpp_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « remoting/client/plugin/pepper_network_manager.cc ('k') | remoting/client/plugin/pepper_xmpp_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698