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

Unified Diff: content/common/gpu/gpu_video_decode_accelerator.cc

Issue 7057027: Updated OMX decoder for recent PPAPI changes, and added to the build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 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 | « content/common/gpu/gpu_video_decode_accelerator.h ('k') | content/common/gpu/gpu_video_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_video_decode_accelerator.cc
diff --git a/content/common/gpu/gpu_video_decode_accelerator.cc b/content/common/gpu/gpu_video_decode_accelerator.cc
index e962968b4a8ee9013644b81ee3091222303bfa74..5b4723a80f2175cf6544b00ff26f2e1ec74b1932 100644
--- a/content/common/gpu/gpu_video_decode_accelerator.cc
+++ b/content/common/gpu/gpu_video_decode_accelerator.cc
@@ -108,7 +108,7 @@ void GpuVideoDecodeAccelerator::OnGetConfigs(
void GpuVideoDecodeAccelerator::OnInitialize(
const std::vector<uint32>& configs) {
- if (!video_decode_accelerator_)
+ if (!video_decode_accelerator_.get())
return;
video_decode_accelerator_->Initialize(configs);
@@ -117,7 +117,7 @@ void GpuVideoDecodeAccelerator::OnInitialize(
void GpuVideoDecodeAccelerator::OnDecode(int32 id,
base::SharedMemoryHandle handle,
int32 size) {
- if (!video_decode_accelerator_)
+ if (!video_decode_accelerator_.get())
return;
video_decode_accelerator_->Decode(media::BitstreamBuffer(id, handle, size));
}
@@ -140,14 +140,14 @@ void GpuVideoDecodeAccelerator::OnAssignSysmemBuffers(
}
void GpuVideoDecodeAccelerator::OnReusePictureBuffer(int32 picture_buffer_id) {
- if (!video_decode_accelerator_)
+ if (!video_decode_accelerator_.get())
return;
video_decode_accelerator_->ReusePictureBuffer(picture_buffer_id);
}
void GpuVideoDecodeAccelerator::OnFlush() {
- if (!video_decode_accelerator_)
+ if (!video_decode_accelerator_.get())
return;
if (!video_decode_accelerator_->Flush()) {
@@ -157,7 +157,7 @@ void GpuVideoDecodeAccelerator::OnFlush() {
}
void GpuVideoDecodeAccelerator::OnAbort() {
- if (!video_decode_accelerator_)
+ if (!video_decode_accelerator_.get())
return;
video_decode_accelerator_->Abort();
« no previous file with comments | « content/common/gpu/gpu_video_decode_accelerator.h ('k') | content/common/gpu/gpu_video_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698