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

Unified Diff: content/common/gpu/media/dxva_video_decode_accelerator.cc

Issue 23125014: Run VDA::Decode on GPU IO thread if VDA supports it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use a separate MessageFilter for GVDA Created 7 years, 4 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
Index: content/common/gpu/media/dxva_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/dxva_video_decode_accelerator.cc b/content/common/gpu/media/dxva_video_decode_accelerator.cc
index fa4dc5cf67c2ca7a94111b609eb403749b01b00b..9be14e9c15271767f39628ab301fb8fb8e4a1994 100644
--- a/content/common/gpu/media/dxva_video_decode_accelerator.cc
+++ b/content/common/gpu/media/dxva_video_decode_accelerator.cc
@@ -514,6 +514,15 @@ bool DXVAVideoDecodeAccelerator::Initialize(media::VideoCodecProfile profile) {
void DXVAVideoDecodeAccelerator::Decode(
const media::BitstreamBuffer& bitstream_buffer) {
+ if (!child_message_loop_->BelongsToCurrentThread) {
piman 2013/08/27 04:01:20 You're missing the () to BelongsToCurrentThread().
wuchengli 2013/08/27 12:32:24 Embarrassing... This part is reverted because of C
+ child_message_loop_->PostTask(
+ FROM_HERE,
+ base::Bind(&DXVAVideoDecodeAccelerator::Decode,
+ base::AsWeakPtr(this),
+ bitstream_buffer));
+ return;
+ }
+
DCHECK(CalledOnValidThread());
RETURN_AND_NOTIFY_ON_FAILURE((state_ == kNormal || state_ == kStopped ||

Powered by Google App Engine
This is Rietveld 408576698