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

Unified Diff: media/filters/gpu_video_decoder.cc

Issue 706023004: Collect VTVideoDecodeAccelerator frames into a work queue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vt_config_change
Patch Set: Rebase. Created 6 years, 1 month 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: media/filters/gpu_video_decoder.cc
diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc
index 5ca6c67d9b536137c86a0f62c7e70ebe4714f474..31e8fe5abae1e38e1509c6d7a2c26747d0d562c1 100644
--- a/media/filters/gpu_video_decoder.cc
+++ b/media/filters/gpu_video_decoder.cc
@@ -397,6 +397,12 @@ static void ReadPixelsSync(
uint32 texture_id,
const gfx::Rect& visible_rect,
const SkBitmap& pixels) {
+#if defined(OS_MACOSX)
+ // For Mac OS X, just return black. http://crbug.com/425708.
+ pixels.eraseARGB(255, 0, 255, 0);
+ return;
+#endif
+
base::WaitableEvent event(true, false);
if (!factories->GetTaskRunner()->PostTask(FROM_HERE,
base::Bind(&ReadPixelsSyncInner,

Powered by Google App Engine
This is Rietveld 408576698