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

Issue 43283002: Enable GLX/EGL backend switching while run HW video decode with libva. (Closed)

Created:
7 years, 2 months ago by qing.zhang
Modified:
6 years, 7 months ago
Reviewers:
Base URL:
https://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Enable GLX/EGL backend switching while run HW video decode with libva. Some IA platforms do not rely on GLX but EGL as graphic texture backend within HW video decoding acceleration by libva (e.g. va_putsurface). This will enhance Chromeos's VAVDA in IA graphic backend which rely on the egl not the former default glx. The developer need specific TAG '-Dvavda_vagl_egl=1' for switching to egl backend while running gyp, the default glx backend keep as before if do not specific the TAG. Devices build-in new X86 libva with egl as graphic backend will need this. BUG=NONE Review URL: https://codereview.chromium.org/43283002

Patch Set 1 #

Total comments: 1

Patch Set 2 : Refine with the separate VA EGL Imp which based on Fischman & Piman comments. #

Patch Set 3 : Switch EGL/GLX backend in the class. #

Patch Set 4 : Refined based on Fischman's comments. #

Patch Set 5 : Refined based on Fischman's comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -30 lines) Patch
M AUTHORS View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M content/common/gpu/media/vaapi_video_decode_accelerator.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M content/common/gpu/media/vaapi_video_decode_accelerator.cc View 1 2 3 4 14 chunks +175 lines, -30 lines 0 comments Download
M content/content_common.gypi View 1 2 3 2 chunks +23 lines, -0 lines 1 comment Download

Messages

Total messages: 17 (0 generated)
qing.zhang
Hi, xhwang, Ami Fischman and piman, I am be very appreciate if you would have ...
7 years, 2 months ago (2013-10-25 06:20:11 UTC) #1
xhwang
I am not familiar with this area. I'll defer to fischman to review this CL. ...
7 years, 1 month ago (2013-10-25 16:14:29 UTC) #2
piman
Is there some abstraction we could add to avoid ifdefs everywhere?
7 years, 1 month ago (2013-10-25 20:40:00 UTC) #3
Ami GONE FROM CHROMIUM
On Fri, Oct 25, 2013 at 1:40 PM, <piman@chromium.org> wrote: > Is there some abstraction ...
7 years, 1 month ago (2013-10-25 20:43:39 UTC) #4
qing.zhang
On 2013/10/25 20:43:39, Ami Fischman wrote: > On Fri, Oct 25, 2013 at 1:40 PM, ...
7 years, 1 month ago (2013-10-26 15:10:37 UTC) #5
Ami GONE FROM CHROMIUM
I don't think we have an out-of-the-box solution for you. The typical way to address ...
7 years, 1 month ago (2013-10-26 19:20:50 UTC) #6
qing.zhang
>On 2013/10/26 19:20:50, Ami Fischman wrote: Ami Fischman@ Your comments and tips are very helpful, ...
7 years, 1 month ago (2013-10-27 11:28:52 UTC) #7
qing.zhang
Hi, Fischman and piman, This extension VA_EGL patch had been refined and verified. Appreciate to ...
7 years, 1 month ago (2013-10-28 06:01:40 UTC) #8
Ami GONE FROM CHROMIUM
I don't think copy/pasting >1k LOC is an acceptable solution to the problem of pervasive ...
7 years, 1 month ago (2013-10-28 19:50:14 UTC) #9
qing.zhang
Hi, Ami Fischman and piman, Thank you very much to help me review. How about ...
7 years, 1 month ago (2013-10-29 07:26:19 UTC) #10
Ami GONE FROM CHROMIUM
This is better than the copy/paste approach, but still has a bunch of per-platform conditionals. ...
7 years, 1 month ago (2013-10-29 15:44:27 UTC) #11
qing.zhang
Very helpful comments, thanks you, Fischman. "I still have serious concerns about the plan here, ...
7 years, 1 month ago (2013-10-30 14:21:04 UTC) #12
qing.zhang
Correct: Please let me know your opinions (not 'options') freely.
7 years, 1 month ago (2013-10-30 14:25:00 UTC) #13
Ami GONE FROM CHROMIUM
PS#5 addressed all my concerns except: 1) This replaces PS#1's #if's with if's. I suspect ...
7 years, 1 month ago (2013-10-30 20:07:55 UTC) #14
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/43283002/diff/250001/content/content_common.gypi File content/content_common.gypi (right): https://codereview.chromium.org/43283002/diff/250001/content/content_common.gypi#newcode526 content/content_common.gypi:526: 'vavda_vagl_egl%': '<(vavda_vagl_egl)', Is the indirection really necessary? (I think ...
7 years, 1 month ago (2013-10-30 20:08:05 UTC) #15
qing.zhang
On 2013/10/30 20:07:55, Ami Fischman wrote: > PS#5 addressed all my concerns except: > > ...
7 years, 1 month ago (2013-10-31 11:49:21 UTC) #16
qing.zhang
7 years, 1 month ago (2013-10-31 11:50:46 UTC) #17
On 2013/10/30 20:08:05, Ami Fischman wrote:
>
https://codereview.chromium.org/43283002/diff/250001/content/content_common.gypi
> File content/content_common.gypi (right):
> 
>
https://codereview.chromium.org/43283002/diff/250001/content/content_common.g...
> content/content_common.gypi:526: 'vavda_vagl_egl%': '<(vavda_vagl_egl)',
> Is the indirection really necessary?  (I think it is not).

Yes, you are right. 
I will modify it in the next PS#

Powered by Google App Engine
This is Rietveld 408576698