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

Unified Diff: remoting/client/frame_consumer_proxy.cc

Issue 15927028: Update remoting/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/frame_consumer_proxy.cc
diff --git a/remoting/client/frame_consumer_proxy.cc b/remoting/client/frame_consumer_proxy.cc
index cce34f148659d72f4d98e4291b689468b7a20314..6f56c22232cc339d2215ea3b21b188dd278f163c 100644
--- a/remoting/client/frame_consumer_proxy.cc
+++ b/remoting/client/frame_consumer_proxy.cc
@@ -27,7 +27,7 @@ void FrameConsumerProxy::ApplyBuffer(const SkISize& view_size,
return;
}
- if (frame_consumer_)
+ if (frame_consumer_.get())
frame_consumer_->ApplyBuffer(view_size, clip_area, buffer, region);
}
@@ -38,7 +38,7 @@ void FrameConsumerProxy::ReturnBuffer(pp::ImageData* buffer) {
return;
}
- if (frame_consumer_)
+ if (frame_consumer_.get())
frame_consumer_->ReturnBuffer(buffer);
}
@@ -50,14 +50,14 @@ void FrameConsumerProxy::SetSourceSize(const SkISize& source_size,
return;
}
- if (frame_consumer_)
+ if (frame_consumer_.get())
frame_consumer_->SetSourceSize(source_size, source_dpi);
}
void FrameConsumerProxy::Attach(
const base::WeakPtr<FrameConsumer>& frame_consumer) {
DCHECK(task_runner_->BelongsToCurrentThread());
- DCHECK(frame_consumer_ == NULL);
+ DCHECK(frame_consumer_.get() == NULL);
Wez 2013/06/03 22:02:55 This should become a boolean.
frame_consumer_ = frame_consumer;
}
« no previous file with comments | « no previous file | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698