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

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

Issue 1380493004: VAVDA: Don't pass coded size as visible rect to PictureReady. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/vaapi_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/vaapi_video_decode_accelerator.cc b/content/common/gpu/media/vaapi_video_decode_accelerator.cc
index fc931b36e6e7302c685d1863defcca41ba5955b1..20977f2a4245a45a6b078168284d7947865bca0d 100644
--- a/content/common/gpu/media/vaapi_video_decode_accelerator.cc
+++ b/content/common/gpu/media/vaapi_video_decode_accelerator.cc
@@ -397,10 +397,11 @@ void VaapiVideoDecodeAccelerator::OutputPicture(
DVLOG(4) << "Notifying output picture id " << output_id
<< " for input "<< input_id << " is ready";
// TODO(posciak): Use visible size from decoder here instead
- // (crbug.com/402760).
+ // (crbug.com/402760). Passing (0, 0) results in the client using the
+ // visible size extracted from the container instead.
if (client_)
client_->PictureReady(media::Picture(output_id, input_id,
- gfx::Rect(picture->size()),
+ gfx::Rect(0, 0),
picture->AllowOverlay()));
}
« 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