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

Unified Diff: media/filters/gpu_video_decoder.cc

Issue 774353002: Actually return black for ReadPixelsSync() on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/gpu_video_decoder.cc
diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc
index 45adef7ca5358dd4c1343406bd5c4313eeaf0891..9424cda2babf8c607f3225c5d9696c4aba18a1be 100644
--- a/media/filters/gpu_video_decoder.cc
+++ b/media/filters/gpu_video_decoder.cc
@@ -402,7 +402,7 @@ static void ReadPixelsSync(
const SkBitmap& pixels) {
#if defined(OS_MACOSX)
// For Mac OS X, just return black. http://crbug.com/425708.
- pixels.eraseARGB(255, 0, 255, 0);
+ pixels.eraseARGB(0, 0, 0, 0);
return;
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698