Update patches for meta-browser master
PATCH 1/1 Update patches for meta-browser master
This builds but unfortunately does not enable the VPU. Offering the patch in case someone else can look at it.
--- README.md | 4 +- ...video-decode-accelerator-to-Chromium-GPU-.patch | 171 ---- ...-video-decode-accelerator-to-Chromium-v53.patch | 187 ++++ ...-video-decode-accelerator-to-Chromium-v54.patch | 172 ++++ .../common/gpu/media/imx_gl_viv_direct_texture.cc | 38 - .../common/gpu/media/imx_gl_viv_direct_texture.h | 55 - .../gpu/media/imxvpu_video_decode_accelerator.cc | 746 -------------- .../gpu/media/imxvpu_video_decode_accelerator.h | 107 -- src/content/common/gpu/media/imxvpucodec.h | 418 -------- .../common/gpu/media/imxvpucodec_fslwrapper.c | 1055 -------------------- .../common/gpu/media/imxvpucodec_platform.h | 35 - .../gpu/media/imxvpucodec_platform_chromium.cc | 40 - .../gpu/media/imxvpucodec_platform_chromium.h | 71 -- src/media/gpu/imx_gl_viv_direct_texture.cc | 38 + src/media/gpu/imx_gl_viv_direct_texture.h | 55 + src/media/gpu/imxvpu_video_decode_accelerator.cc | 767 ++++++++++++++ src/media/gpu/imxvpu_video_decode_accelerator.h | 112 +++ src/media/gpu/imxvpucodec.h | 418 ++++++++ src/media/gpu/imxvpucodec_fslwrapper.c | 1055 ++++++++++++++++++++ src/media/gpu/imxvpucodec_platform.h | 35 + src/media/gpu/imxvpucodec_platform_chromium.cc | 40 + src/media/gpu/imxvpucodec_platform_chromium.h | 71 ++ 22 files changed, 2952 insertions(+), 2738 deletions(-) delete mode 100644 patches/common/0002-Add-VPU-video-decode-accelerator-to-Chromium-GPU-.patch create mode 100644 patches/common/0002-Add-VPU-video-decode-accelerator-to-Chromium-v53.patch create mode 100644 patches/common/0002-Add-VPU-video-decode-accelerator-to-Chromium-v54.patch delete mode 100644 src/content/common/gpu/media/imx_gl_viv_direct_texture.cc delete mode 100644 src/content/common/gpu/media/imx_gl_viv_direct_texture.h delete mode 100644 src/content/common/gpu/media/imxvpu_video_decode_accelerator.cc delete mode 100644 src/content/common/gpu/media/imxvpu_video_decode_accelerator.h delete mode 100644 src/content/common/gpu/media/imxvpucodec.h delete mode 100644 src/content/common/gpu/media/imxvpucodec_fslwrapper.c delete mode 100644 src/content/common/gpu/media/imxvpucodec_platform.h delete mode 100644 src/content/common/gpu/media/imxvpucodec_platform_chromium.cc delete mode 100644 src/content/common/gpu/media/imxvpucodec_platform_chromium.h create mode 100644 src/media/gpu/imx_gl_viv_direct_texture.cc create mode 100644 src/media/gpu/imx_gl_viv_direct_texture.h create mode 100644 src/media/gpu/imxvpu_video_decode_accelerator.cc create mode 100644 src/media/gpu/imxvpu_video_decode_accelerator.h create mode 100644 src/media/gpu/imxvpucodec.h create mode 100644 src/media/gpu/imxvpucodec_fslwrapper.c create mode 100644 src/media/gpu/imxvpucodec_platform.h create mode 100644 src/media/gpu/imxvpucodec_platform_chromium.cc create mode 100644 src/media/gpu/imxvpucodec_platform_chromium.h
README.md +2 -2
@@ -5,7 +5,7 @@ This repository contains sources which add hardware video decoding support to Ch using the Freescale i.MX VPU. They are placed under the BSD 3-clause license. See the LICENSE file for details. -These sources are written against Chromium 48.0.2548.0. +These sources are written against Chromium 53.0.2785.143 and 54.0.2810.2. Prerequisites
@@ -17,7 +17,7 @@ of decoded frames. Also, Freescale's libfslvpuwrap library is required. Use at least version 1.0.45. -Furthermore, Chromium must be ran with its EGL backend enabled. Use the --use-gl=egl option for this. +Furthermore, Chromium must be run with its EGL backend enabled. Use the --use-gl=egl option for this. Patching Chromium
patches/common/0002-Add-VPU-video-decode-accelerator-to-Chromium-GPU-.patch deleted +0 -171
171 lines not on this page · raw message
patches/common/0002-Add-VPU-video-decode-accelerator-to-Chromium-v53.patch new file +187 -0
187 lines not on this page · raw message
patches/common/0002-Add-VPU-video-decode-accelerator-to-Chromium-v54.patch new file +172 -0
172 lines not on this page · raw message
src/content/common/gpu/media/imx_gl_viv_direct_texture.cc deleted +0 -38
@@ -1,38 +0,0 @@ -#include "ui/gl/gl_implementation.h" -#include "imx_gl_viv_direct_texture.h" - - -bool init_viv_direct_texture(gfx::GLContext &context, GLESVIVDirectTextureProcs &procs) -{ - VLOG(1) << "Initializing Vivante direct texture GLES extension"; - - gfx::GLImplementation glimpl = gfx::GetGLImplementation(); - if (glimpl != gfx::kGLImplementationEGLGLES2) - { - LOG(INFO) << "Cannot initialize direct textures - GL implementation is " - << gfx::GetGLImplementationName(glimpl) - << ", expected " << - gfx::GetGLImplementationName(gfx::kGLImplementationEGLGLES2); - return false; - } - - // Newer Vivante drivers call the extension GL_VIV_tex_direct instead of GL_VIV_direct_texture, - // even though it is the same extension - if (context.HasExtension("GL_VIV_direct_texture")) - VLOG(1) << "GL_VIV_direct_texture supported"; - else if (context.HasExtension("GL_VIV_tex_direct")) - VLOG(1) << "GL_VIV_tex_direct supported"; - else - { - VLOG(1) << "Neither GL_VIV_direct_texture nor GL_VIV_tex_direct supported"; - return false; - } - - procs.TexDirectVIV = reinterpret_cast < PFNGLTEXDIRECTVIVPROC > (gfx::GetGLProcAddress("glTexDirectVIV")); - procs.TexDirectVIVMap = reinterpret_cast < PFNGLTEXDIRECTVIVMAPPROC > (gfx::GetGLProcAddress("glTexDirectVIVMap")); - procs.TexDirectTiledMapVIV = reinterpret_cast < PFNGLTEXDIRECTTILEDMAPVIVPROC > (gfx::GetGLProcAddress("glTexDirectTiledMapVIV")); - procs.TexDirectInvalidateVIV = reinterpret_cast < PFNGLTEXDIRECTINVALIDATEVIVPROC > (gfx::GetGLProcAddress("glTexDirectInvalidateVIV")); - - return true; -} -
src/content/common/gpu/media/imx_gl_viv_direct_texture.h deleted +0 -55
55 lines not on this page · raw message
src/content/common/gpu/media/imxvpu_video_decode_accelerator.cc deleted +0 -746
746 lines not on this page · raw message
src/content/common/gpu/media/imxvpu_video_decode_accelerator.h deleted +0 -107
107 lines not on this page · raw message
src/content/common/gpu/media/imxvpucodec.h deleted +0 -418
418 lines not on this page · raw message
src/content/common/gpu/media/imxvpucodec_fslwrapper.c deleted +0 -1055
1,055 lines not on this page · raw message
src/content/common/gpu/media/imxvpucodec_platform.h deleted +0 -35
@@ -1,35 +0,0 @@ -/* -* imxvpucodec - i.MX6 VPU hardware codec engine API library -* Copyright (c) 2014 Carlos Rafael Giani -* -* This software is provided 'as-is', without any express or implied -* warranty. In no event will the authors be held liable for any -* damages arising from the use of this software. -* -* Permission is granted to anyone to use this software for any purpose, -* including commercial applications, and to alter it and redistribute -* it freely, subject to the following restrictions: -* -* 1. The origin of this software must not be misrepresented; you must -* not claim that you wrote the original software. If you use this -* software in a product, an acknowledgment in the product -* documentation would be appreciated but is not required. -* -* 2. Altered source versions must be plainly marked as such, and must -* not be misrepresented as being the original software. -* -* 3. This notice may not be removed or altered from any source distribution. -*/ - - -#ifndef IMXVPUCODEC_PLATFORM_H -#define IMXVPUCODEC_PLATFORM_H - - -#define IMXVPUCODEC_UNUSED_PARAM (x) ((void)(x)) - - -#include "imxvpucodec_platform_chromium.h" - - -#endif
src/content/common/gpu/media/imxvpucodec_platform_chromium.cc deleted +0 -40
Lines of this file are not shown. View the raw message.
src/content/common/gpu/media/imxvpucodec_platform_chromium.h deleted +0 -71
71 lines not on this page · raw message
src/media/gpu/imx_gl_viv_direct_texture.cc new file +38 -0
Lines of this file are not shown. View the raw message.
src/media/gpu/imx_gl_viv_direct_texture.h new file +55 -0
55 lines not on this page · raw message
src/media/gpu/imxvpu_video_decode_accelerator.cc new file +767 -0
767 lines not on this page · raw message
src/media/gpu/imxvpu_video_decode_accelerator.h new file +112 -0
112 lines not on this page · raw message
src/media/gpu/imxvpucodec.h new file +418 -0
418 lines not on this page · raw message
src/media/gpu/imxvpucodec_fslwrapper.c new file +1055 -0
1,055 lines not on this page · raw message
src/media/gpu/imxvpucodec_platform.h new file +35 -0
Lines of this file are not shown. View the raw message.
src/media/gpu/imxvpucodec_platform_chromium.cc new file +40 -0
Lines of this file are not shown. View the raw message.
src/media/gpu/imxvpucodec_platform_chromium.h new file +71 -0
71 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.9.1
Part of the diff is not shown here. View the raw message.