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

Issue 2649553003: gpu: merge gpu/ipc/host/gpu_memory_buffer_support.cc to gpu/ipc/common/

Created:
3 years, 11 months ago by dshwang
Modified:
3 years, 9 months ago
CC:
chromium-reviews, creis+watch_chromium.org, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, piman+watch_chromium.org, rjkroege
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: merge gpu/ipc/host/gpu_memory_buffer_support.cc to gpu/ipc/common/ Renderer needs to check if native GBM is supported. So this CL changes * notify kEnableNativeGpuMemoryBuffer command line to renderer * merge gpu/ipc/host/gpu_memory_buffer_support.cc to gpu/ipc/common/gpu_memory_buffer_support.cc ChromeOS will copy a decoded YUV video frame to a YUYV GBM only if YUYV native GBM is supported. It's because there is not regular texture fallback in OpenGL ES, while EGL EXT_image_dma_buf_import extensions support YUYV EGL image. It's why Renderer needs to know. BUG=683347, 675431 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Patch Set 1 #

Patch Set 2 : remove unrelated change #

Patch Set 3 : fix bot failure #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -207 lines) Patch
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/browser_gpu_memory_buffer_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/compositor_util.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gpu/ipc/common/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/ipc/common/gpu_memory_buffer_support.h View 2 chunks +32 lines, -0 lines 0 comments Download
M gpu/ipc/common/gpu_memory_buffer_support.cc View 1 4 chunks +105 lines, -0 lines 1 comment Download
A gpu/ipc/common/gpu_switches.h View 1 chunk +19 lines, -0 lines 0 comments Download
A + gpu/ipc/common/gpu_switches.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/ipc/host/BUILD.gn View 1 2 2 chunks +0 lines, -6 lines 0 comments Download
D gpu/ipc/host/gpu_memory_buffer_support.h View 1 chunk +0 lines, -46 lines 0 comments Download
D gpu/ipc/host/gpu_memory_buffer_support.cc View 1 chunk +0 lines, -113 lines 0 comments Download
D gpu/ipc/host/gpu_switches.h View 1 chunk +0 lines, -17 lines 0 comments Download
D gpu/ipc/host/gpu_switches.cc View 1 chunk +0 lines, -16 lines 0 comments Download
M services/ui/common/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/common/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/common/server_gpu_memory_buffer_manager.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30 (19 generated)
dshwang
It's follow-up CL of https://codereview.chromium.org/2551743002 zmo@chromium.org: Please review changes in gpu/ ccameron@chromium.org: Please review changes ...
3 years, 11 months ago (2017-01-20 23:40:19 UTC) #8
sadrul
+reveman@ We have discussed some of this in https://bugs.chromium.org/p/chromium/issues/detail?id=675431 Perhaps we can have a better ...
3 years, 11 months ago (2017-01-21 02:59:40 UTC) #13
dshwang
On 2017/01/21 02:59:40, sadrul wrote: > +reveman@ > > We have discussed some of this ...
3 years, 11 months ago (2017-01-23 19:09:10 UTC) #18
dshwang
reveman@, could you review overall of this CL?
3 years, 11 months ago (2017-01-26 22:13:34 UTC) #21
dshwang
reveman@, could you review overall of this CL?
3 years, 10 months ago (2017-02-08 00:33:18 UTC) #22
dshwang
reveman@, could you review overall of this CL? zmo@chromium.org: Please review changes in gpu/ ccameron@chromium.org: ...
3 years, 10 months ago (2017-02-10 23:34:21 UTC) #23
reveman
Not sure this is the right approach. I'd rather we could enable decode to YUYV ...
3 years, 10 months ago (2017-02-11 00:06:24 UTC) #24
dshwang
On 2017/02/11 00:06:24, reveman wrote: > Not sure this is the right approach. I'd rather ...
3 years, 10 months ago (2017-02-11 01:34:39 UTC) #25
reveman
On 2017/02/11 at 01:34:39, dongseong.hwang wrote: > On 2017/02/11 00:06:24, reveman wrote: > > Not ...
3 years, 10 months ago (2017-02-13 18:49:38 UTC) #28
dshwang
On 2017/02/13 18:49:38, reveman wrote: > On 2017/02/11 at 01:34:39, dongseong.hwang wrote: > > On ...
3 years, 10 months ago (2017-02-21 22:51:22 UTC) #29
dshwang
3 years, 9 months ago (2017-03-07 21:50:03 UTC) #30
https://codereview.chromium.org/2649553003/diff/40001/gpu/ipc/common/gpu_memo...
File gpu/ipc/common/gpu_memory_buffer_support.cc (right):

https://codereview.chromium.org/2649553003/diff/40001/gpu/ipc/common/gpu_memo...
gpu/ipc/common/gpu_memory_buffer_support.cc:50: if
(!(AreNativeGpuMemoryBuffersEnabled() || never_cpu_read))
reveman@, besides video GMB support, I think this CL makes code more make sense.

common/gpu_memory_buffer_support.cc can be used by either renderer and browser,
and IsNativeGpuMemoryBufferConfigurationSupported() cannot confirm
"IsNativeGpuMemoryBufferConfigurationSupported" to renderer, because renderer
cannot know if native GMB is supported.

Powered by Google App Engine
This is Rietveld 408576698