| Index: content/common/gpu/media/gpu_video_decode_accelerator.cc
|
| diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.cc b/content/common/gpu/media/gpu_video_decode_accelerator.cc
|
| index 7e5177737850213c240ce93a20a7b6bfbdc6d6b5..1bce036849ca982d8645e03b061f0090453c90e1 100644
|
| --- a/content/common/gpu/media/gpu_video_decode_accelerator.cc
|
| +++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc
|
| @@ -79,12 +79,12 @@ GpuVideoDecodeAccelerator::~GpuVideoDecodeAccelerator() {
|
| stub_->RemoveDestructionObserver(this);
|
| }
|
|
|
| - if (video_decode_accelerator_.get())
|
| + if (video_decode_accelerator_)
|
| video_decode_accelerator_.release()->Destroy();
|
| }
|
|
|
| bool GpuVideoDecodeAccelerator::OnMessageReceived(const IPC::Message& msg) {
|
| - if (!stub_ || !video_decode_accelerator_.get())
|
| + if (!stub_ || !video_decode_accelerator_)
|
| return false;
|
| bool handled = true;
|
| IPC_BEGIN_MESSAGE_MAP(GpuVideoDecodeAccelerator, msg)
|
| @@ -349,7 +349,7 @@ void GpuVideoDecodeAccelerator::NotifyResetDone() {
|
|
|
| void GpuVideoDecodeAccelerator::OnWillDestroyStub(GpuCommandBufferStub* stub) {
|
| DCHECK_EQ(stub, stub_.get());
|
| - if (video_decode_accelerator_.get())
|
| + if (video_decode_accelerator_)
|
| video_decode_accelerator_.release()->Destroy();
|
| if (stub_) {
|
| stub_->RemoveDestructionObserver(this);
|
|
|