Commit 2658ccbe authored by liberato@chromium.org's avatar liberato@chromium.org Committed by Commit Bot

Set coded size properly in D3D11VideoDecoder.

When setting the visible rect properly, the coded size was
inadvertently also changed to be the visible rect.  This CL puts
it back.

Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Change-Id: I0b041b495bbc5a12095868ac0e6391826a445f77
Reviewed-on: https://chromium-review.googlesource.com/1217753Reviewed-by: default avatarDan Sanders <sandersd@chromium.org>
Commit-Queue: Frank Liberato <liberato@chromium.org>
Cr-Commit-Position: refs/heads/master@{#590105}
parent 34b81f99
...@@ -482,7 +482,7 @@ void D3D11VideoDecoder::OutputResult(const CodecPicture* picture, ...@@ -482,7 +482,7 @@ void D3D11VideoDecoder::OutputResult(const CodecPicture* picture,
base::TimeDelta timestamp = picture_buffer->timestamp_; base::TimeDelta timestamp = picture_buffer->timestamp_;
scoped_refptr<VideoFrame> frame = VideoFrame::WrapNativeTextures( scoped_refptr<VideoFrame> frame = VideoFrame::WrapNativeTextures(
PIXEL_FORMAT_NV12, picture_buffer->mailbox_holders(), PIXEL_FORMAT_NV12, picture_buffer->mailbox_holders(),
VideoFrame::ReleaseMailboxCB(), visible_rect.size(), visible_rect, VideoFrame::ReleaseMailboxCB(), picture_buffer->size(), visible_rect,
GetNaturalSize(visible_rect, pixel_aspect_ratio), timestamp); GetNaturalSize(visible_rect, pixel_aspect_ratio), timestamp);
// TODO(liberato): bind this to the gpu main thread. // TODO(liberato): bind this to the gpu main thread.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment