From 24da601d444c8822c5ff0a10751b9384f25dd1b4 Mon Sep 17 00:00:00 2001 From: ccameron Date: Tue, 22 Mar 2016 23:11:51 -0700 Subject: Mac: Decode hardware to 420 instead of 422 If the decoded frame is going to be used as a CALayer overlay, then it will never be converted to RGBA. If it is used by OpenGL, then the same infrastructure for software frames will be employed to make an expensive RGBA copy of the frame. BUG=594452 Review URL: https://codereview.chromium.org/1822173002 Cr-Commit-Position: refs/heads/master@{#382797} --- media/video/video_decode_accelerator.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'media') diff --git a/media/video/video_decode_accelerator.h b/media/video/video_decode_accelerator.h index ad73432..a840750 100644 --- a/media/video/video_decode_accelerator.h +++ b/media/video/video_decode_accelerator.h @@ -15,6 +15,7 @@ #include "media/base/video_decoder_config.h" #include "media/video/picture.h" #include "ui/gfx/geometry/size.h" +#include "ui/gl/gl_image.h" typedef unsigned int GLenum; @@ -37,6 +38,10 @@ class MEDIA_EXPORT VideoDecodeAccelerator { }; using SupportedProfiles = std::vector; + using MakeContextCurrentCallback = base::Callback; + using BindImageCallback = base::Callback< + void(uint32_t, uint32_t, scoped_refptr, bool)>; + struct MEDIA_EXPORT Capabilities { Capabilities(); Capabilities(const Capabilities& other); -- cgit v1.1