Commit 6f976149 authored by Vasiliy Telezhnikov's avatar Vasiliy Telezhnikov Committed by Commit Bot

Fix vulkan ycbcr_info in wrapped VideoFrame

This CL fixes ycbcr_info in VideoFrame created by WrapVideoFrame.

MediaPlayer path on Android uses VideoFrame::WrapVideoFrame to create
VideoFrames with unique id from single VideoFrame created in
StreamTextureWrapperImpl.

Bug: 1077743
Change-Id: I7acdd56905bb1b73608e8c927f9c572c7dae8489
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2209296Reviewed-by: default avatarFrank Liberato <liberato@chromium.org>
Commit-Queue: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#770394}
parent f0bfa215
...@@ -470,7 +470,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> { ...@@ -470,7 +470,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
} }
const base::Optional<gpu::VulkanYCbCrInfo>& ycbcr_info() const { const base::Optional<gpu::VulkanYCbCrInfo>& ycbcr_info() const {
return ycbcr_info_; return wrapped_frame_ ? wrapped_frame_->ycbcr_info() : ycbcr_info_;
} }
// Returns pointer to the data in the visible region of the frame, for // Returns pointer to the data in the visible region of the frame, for
......
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