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

Issue 1415723006: ui: Add RGBX_8888 buffer format. (Closed)

Created:
5 years, 2 months ago by reveman
Modified:
5 years, 2 months ago
Reviewers:
piman
CC:
chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, Daniele Castagna, feature-media-reviews_chromium.org, jam, jbauman+watch_chromium.org, kalyank, mcasas+watch_chromium.org, ozone-reviews_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, sievers+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ui: Add RGBX_8888 buffer format. This adds a new RGBX buffer format which is the RGBA equivalent of BGRX. This is useful to have when importing buffers and it makes sense to have this when we have BGRX. This also makes our shared memory implementation of GpuMemoryBuffers and GLImages support these formats without an alpha channel. This is useful for testing purposes and not having to special case BGRX makes for cleaner code. The GLImage unit test have been updated to test all 32bpp buffer formats. BUG=538325 TEST=gl_unittest --gtest_filter=GLImage*/GLImageCopyTest/*.CopyTexImage Committed: https://crrev.com/485728ba7af8e6519af075fd64de8e0295c09b93 Cr-Commit-Position: refs/heads/master@{#355839}

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove GL_UNSIGNED_INT_8_8_8_8* usage and avoid conversion when not gles #

Patch Set 3 : fix gles but no conversion needed case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -220 lines) Patch
M content/browser/gpu/browser_gpu_memory_buffer_manager.cc View 3 chunks +4 lines, -7 lines 0 comments Download
M content/common/child_process_host_impl.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc View 4 chunks +2 lines, -27 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory_unittest.cc View 1 chunk +0 lines, -3 lines 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 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/image_factory.cc View 4 chunks +4 lines, -1 line 0 comments Download
M gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M ui/gfx/buffer_format_util.cc View 5 chunks +18 lines, -8 lines 0 comments Download
M ui/gfx/buffer_types.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/gl_image_io_surface.mm View 4 chunks +4 lines, -0 lines 0 comments Download
M ui/gl/gl_image_memory.h View 2 chunks +2 lines, -4 lines 0 comments Download
M ui/gl/gl_image_memory.cc View 1 2 11 chunks +137 lines, -71 lines 0 comments Download
M ui/gl/gl_image_ozone_native_pixmap.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/gl/gl_image_ref_counted_memory_unittest.cc View 2 chunks +11 lines, -6 lines 0 comments Download
M ui/gl/gl_image_shared_memory.cc View 3 chunks +4 lines, -24 lines 0 comments Download
M ui/gl/gl_image_shared_memory_unittest.cc View 3 chunks +11 lines, -6 lines 0 comments Download
M ui/gl/gl_tests.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/test/gl_image_test_support.h View 1 chunk +0 lines, -6 lines 0 comments Download
M ui/gl/test/gl_image_test_support.cc View 5 chunks +20 lines, -20 lines 0 comments Download
M ui/gl/test/gl_image_test_template.h View 3 chunks +13 lines, -27 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
reveman
5 years, 2 months ago (2015-10-22 20:53:17 UTC) #2
piman
https://codereview.chromium.org/1415723006/diff/1/ui/gl/gl_image_memory.cc File ui/gl/gl_image_memory.cc (right): https://codereview.chromium.org/1415723006/diff/1/ui/gl/gl_image_memory.cc#newcode149 ui/gl/gl_image_memory.cc:149: return GL_UNSIGNED_INT_8_8_8_8_REV; Hmm, I'm not sure what the expectation ...
5 years, 2 months ago (2015-10-23 00:52:44 UTC) #3
reveman
https://codereview.chromium.org/1415723006/diff/1/ui/gl/gl_image_memory.cc File ui/gl/gl_image_memory.cc (right): https://codereview.chromium.org/1415723006/diff/1/ui/gl/gl_image_memory.cc#newcode149 ui/gl/gl_image_memory.cc:149: return GL_UNSIGNED_INT_8_8_8_8_REV; On 2015/10/23 at 00:52:44, piman (slow to ...
5 years, 2 months ago (2015-10-23 13:44:43 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415723006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415723006/40001
5 years, 2 months ago (2015-10-23 13:45:10 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-23 14:41:13 UTC) #8
piman
lgtm
5 years, 2 months ago (2015-10-23 17:24:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415723006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415723006/40001
5 years, 2 months ago (2015-10-23 18:24:38 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-23 18:43:29 UTC) #13
commit-bot: I haz the power
5 years, 2 months ago (2015-10-23 18:44:50 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/485728ba7af8e6519af075fd64de8e0295c09b93
Cr-Commit-Position: refs/heads/master@{#355839}

Powered by Google App Engine
This is Rietveld 408576698