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 47e1e534ed348336e8cbf27a5edda6ef7489986b..2ef550decaf42cea239132d368263047b56f74f4 100644 |
--- a/content/common/gpu/media/gpu_video_decode_accelerator.cc |
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc |
@@ -489,6 +489,17 @@ void GpuVideoDecodeAccelerator::OnSetCdm(int cdm_id) { |
video_decode_accelerator_->SetCdm(cdm_id); |
} |
+void GpuVideoDecodeAccelerator::CallOrPostNotifyError( |
kcwu
2016/03/16 06:20:53
unused?
|
+ media::VideoDecodeAccelerator::Error error) { |
+ if (child_task_runner_->BelongsToCurrentThread()) { |
+ NotifyError(error); |
+ } else { |
+ child_task_runner_->PostTask( |
+ FROM_HERE, base::Bind(&GpuVideoDecodeAccelerator::NotifyError, |
+ base::Unretained(this), error)); |
+ } |
+} |
+ |
// Runs on IO thread if video_decode_accelerator_->CanDecodeOnIOThread() is |
// true, otherwise on the main thread. |
void GpuVideoDecodeAccelerator::OnDecode( |