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; |
} |