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

Issue 1282313002: Add YUV_420_BIPLANAR to gfx::BufferFormat. (Closed)

Created:
5 years, 4 months ago by Andre
Modified:
5 years, 4 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, qsr+mojo_chromium.org, sievers+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@gmb-planes
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add YUV_420_BIPLANAR to gfx::BufferFormat. Enable it as a supported configuration on Mac. BUG=510260 TEST=Covered by GpuMemoryBufferImpl::Map and ::PersistentMap. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/f7a3b9416464e0c7384a6387caaeed230bc77a39 Cr-Commit-Position: refs/heads/master@{#343093}

Patch Set 1 #

Patch Set 2 : Fix ozone build #

Total comments: 7

Patch Set 3 : Enable it on Mac #

Total comments: 14

Patch Set 4 : Fixes for reveman #

Total comments: 14

Patch Set 5 : reveman round 2 #

Total comments: 10

Patch Set 6 : reveman nits #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -17 lines) Patch
M cc/test/test_gpu_memory_buffer_manager.cc View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M components/view_manager/gles2/mojo_gpu_memory_buffer.cc View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/gpu/browser_gpu_memory_buffer_manager.cc View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_buffer_pool.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl.cc View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc View 1 2 3 4 3 chunks +8 lines, -3 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_io_surface.cc View 1 2 3 4 5 5 chunks +39 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/image_factory.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.cc View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M ui/gfx/buffer_format_util.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/buffer_types.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/gl/gl_image_io_surface.mm View 1 2 3 4 4 chunks +4 lines, -0 lines 0 comments Download
M ui/gl/gl_image_memory.cc View 1 2 3 4 5 chunks +6 lines, -1 line 0 comments Download
M ui/gl/gl_image_ozone_native_pixmap.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 31 (12 generated)
Andre
PTAL
5 years, 4 months ago (2015-08-10 19:30:26 UTC) #2
ccameron
I think this is the right way to go -- haven't verified all of the ...
5 years, 4 months ago (2015-08-10 19:35:08 UTC) #4
Andre
https://codereview.chromium.org/1282313002/diff/20001/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc File content/common/gpu/gpu_memory_buffer_factory_io_surface.cc (right): https://codereview.chromium.org/1282313002/diff/20001/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc#newcode125 content/common/gpu/gpu_memory_buffer_factory_io_surface.cc:125: AddIntegerValue(properties, kIOSurfacePixelFormat, PixelFormat(format)); Yep, I'm working on that on ...
5 years, 4 months ago (2015-08-10 20:15:26 UTC) #5
reveman
Does GpuMemoryBufferImplTests work properly with this format? https://codereview.chromium.org/1282313002/diff/20001/content/common/gpu/client/gpu_memory_buffer_impl.cc File content/common/gpu/client/gpu_memory_buffer_impl.cc (right): https://codereview.chromium.org/1282313002/diff/20001/content/common/gpu/client/gpu_memory_buffer_impl.cc#newcode154 content/common/gpu/client/gpu_memory_buffer_impl.cc:154: *size_in_bytes = ...
5 years, 4 months ago (2015-08-10 20:28:16 UTC) #6
Andre
https://codereview.chromium.org/1282313002/diff/20001/content/common/gpu/client/gpu_memory_buffer_impl.cc File content/common/gpu/client/gpu_memory_buffer_impl.cc (right): https://codereview.chromium.org/1282313002/diff/20001/content/common/gpu/client/gpu_memory_buffer_impl.cc#newcode154 content/common/gpu/client/gpu_memory_buffer_impl.cc:154: *size_in_bytes = width; Hmm, I'm not seeing why it's ...
5 years, 4 months ago (2015-08-10 21:09:48 UTC) #7
reveman
https://codereview.chromium.org/1282313002/diff/20001/content/common/gpu/client/gpu_memory_buffer_impl.cc File content/common/gpu/client/gpu_memory_buffer_impl.cc (right): https://codereview.chromium.org/1282313002/diff/20001/content/common/gpu/client/gpu_memory_buffer_impl.cc#newcode154 content/common/gpu/client/gpu_memory_buffer_impl.cc:154: *size_in_bytes = width; On 2015/08/10 at 21:09:48, Andre wrote: ...
5 years, 4 months ago (2015-08-10 22:40:55 UTC) #8
Andre
PTAL https://codereview.chromium.org/1282313002/diff/40001/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc File content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc (right): https://codereview.chromium.org/1282313002/diff/40001/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc#newcode65 content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc:65: const size_t planes = IOSurfaceGetPlaneCount(io_surface_); On 2015/08/10 22:40:54, ...
5 years, 4 months ago (2015-08-11 03:50:46 UTC) #16
reveman
https://codereview.chromium.org/1282313002/diff/180001/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc File content/common/gpu/gpu_memory_buffer_factory_io_surface.cc (right): https://codereview.chromium.org/1282313002/diff/180001/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc#newcode132 content/common/gpu/gpu_memory_buffer_factory_io_surface.cc:132: if (num_planes == 1) { This is unfortunate. What ...
5 years, 4 months ago (2015-08-11 08:20:08 UTC) #17
Andre
PTAL https://codereview.chromium.org/1282313002/diff/180001/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc File content/common/gpu/gpu_memory_buffer_factory_io_surface.cc (right): https://codereview.chromium.org/1282313002/diff/180001/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc#newcode132 content/common/gpu/gpu_memory_buffer_factory_io_surface.cc:132: if (num_planes == 1) { Done. I removed ...
5 years, 4 months ago (2015-08-11 18:15:44 UTC) #18
reveman
lgtm with nits https://codereview.chromium.org/1282313002/diff/200001/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc File content/common/gpu/gpu_memory_buffer_factory_io_surface.cc (right): https://codereview.chromium.org/1282313002/diff/200001/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc#newcode28 content/common/gpu/gpu_memory_buffer_factory_io_surface.cc:28: int32 BytesPerElement(gfx::BufferFormat format, size_t plane) { ...
5 years, 4 months ago (2015-08-11 19:10:10 UTC) #19
Andre
+msw for components/view_manager. +jbauman for gpu/command_buffer. +avi for ui and content. https://codereview.chromium.org/1282313002/diff/200001/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc File content/common/gpu/gpu_memory_buffer_factory_io_surface.cc (right): ...
5 years, 4 months ago (2015-08-11 19:46:22 UTC) #21
msw
components/view_manager lgtm
5 years, 4 months ago (2015-08-11 19:52:02 UTC) #22
jbauman
gpu/command_buffer lgtm
5 years, 4 months ago (2015-08-12 00:05:05 UTC) #23
Andre
Rebase
5 years, 4 months ago (2015-08-12 16:58:58 UTC) #24
Andre
Avi PTAL for ui and content.
5 years, 4 months ago (2015-08-12 17:09:37 UTC) #25
Avi (use Gerrit)
lgtm stampity stamp
5 years, 4 months ago (2015-08-12 19:58:04 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282313002/230001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282313002/230001
5 years, 4 months ago (2015-08-12 20:01:12 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:230001)
5 years, 4 months ago (2015-08-12 21:08:28 UTC) #30
commit-bot: I haz the power
5 years, 4 months ago (2015-08-12 21:09:43 UTC) #31
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f7a3b9416464e0c7384a6387caaeed230bc77a39
Cr-Commit-Position: refs/heads/master@{#343093}

Powered by Google App Engine
This is Rietveld 408576698