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

Issue 1051503003: Add R_8 GPU memory buffers format. (Closed)

Created:
5 years, 8 months ago by Daniele Castagna
Modified:
5 years, 8 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, ozone-reviews_chromium.org, piman+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

Add R_8 GPU memory buffers format. GpuMemoryBuffer::Format::R_8 should be used to represent textures with only one channel, the associated image should have GL_R8/GL_R8_EXT as internal format. With this CL the only implementation of GpuMemoryBuffer that supports R_8 is GLImageMemory, it expects a 4 bytes row alignment (4 is the default value for GL_PACK_ALIGNMENT). BUG= Committed: https://crrev.com/51f60b27d0a7c8f1d39674fec24f73e9b55f04e6 Cr-Commit-Position: refs/heads/master@{#324281}

Patch Set 1 #

Patch Set 2 : Fix validation problem in StrideInBytes. Deals with GL_RED/GL_LUMINANCE. #

Total comments: 31

Patch Set 3 : Address reveman@'s comments. #

Total comments: 27

Patch Set 4 : Validate internalformat. Modify extension spec. Address comments. #

Patch Set 5 : Rebase on master. Remove LUMINANCE support. #

Patch Set 6 : Fix revision date in CHROMIUM_image.txt. #

Patch Set 7 : Remove GL_R8 in TextureManager::ValidateTextureParameters. #

Total comments: 4

Patch Set 8 : Address reveman's nits. #

Total comments: 5

Patch Set 9 : Merged on master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -33 lines) Patch
M cc/test/test_gpu_memory_buffer_manager.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -11 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc View 1 2 3 4 5 6 7 8 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 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M gpu/GLES2/extensions/CHROMIUM/CHROMIUM_image.txt View 1 2 3 4 5 4 chunks +10 lines, -3 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/image_factory.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +11 lines, -1 line 0 comments Download
M gpu/command_buffer/tests/gl_manager.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -0 lines 0 comments Download
M ui/gfx/gpu_memory_buffer.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_image_linux_dma_buffer.cc View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -0 lines 0 comments Download
M ui/gl/gl_image_memory.cc View 1 2 3 4 5 6 7 8 7 chunks +22 lines, -14 lines 0 comments Download
M ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
Daniele Castagna
5 years, 8 months ago (2015-04-01 02:06:20 UTC) #2
reveman
You also need to update content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc. Add this new format as a supported configuration. That ...
5 years, 8 months ago (2015-04-01 13:14:34 UTC) #3
Daniele Castagna
On 2015/04/01 at 13:14:34, reveman wrote: > You also need to update content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc. Add this ...
5 years, 8 months ago (2015-04-01 21:57:42 UTC) #4
Daniele Castagna
https://codereview.chromium.org/1051503003/diff/20001/content/common/gpu/client/gpu_memory_buffer_impl.cc File content/common/gpu/client/gpu_memory_buffer_impl.cc (left): https://codereview.chromium.org/1051503003/diff/20001/content/common/gpu/client/gpu_memory_buffer_impl.cc#oldcode110 content/common/gpu/client/gpu_memory_buffer_impl.cc:110: NOTREACHED(); On 2015/04/01 at 13:14:33, reveman wrote: > I ...
5 years, 8 months ago (2015-04-01 21:58:35 UTC) #5
reveman
We also need to verify both on the client and service side that ARB_texture_rg is ...
5 years, 8 months ago (2015-04-01 23:38:55 UTC) #6
Daniele Castagna
On 2015/04/01 at 23:38:55, reveman wrote: > We also need to verify both on the ...
5 years, 8 months ago (2015-04-03 01:07:13 UTC) #10
Daniele Castagna
https://codereview.chromium.org/1051503003/diff/40001/content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc File content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc (right): https://codereview.chromium.org/1051503003/diff/40001/content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc#newcode43 content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc:43: if (!GpuMemoryBufferImpl::StrideInBytes(size.width(), format, On 2015/04/01 at 23:38:55, reveman wrote: ...
5 years, 8 months ago (2015-04-03 01:08:15 UTC) #11
Daniele Castagna
PTAL. All the references to LUMINANCE have been removed as per discussion IRL.
5 years, 8 months ago (2015-04-07 22:43:52 UTC) #12
reveman
lgtm with nits https://codereview.chromium.org/1051503003/diff/40001/content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc File content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc (right): https://codereview.chromium.org/1051503003/diff/40001/content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc#newcode43 content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc:43: if (!GpuMemoryBufferImpl::StrideInBytes(size.width(), format, On 2015/04/03 01:08:15, ...
5 years, 8 months ago (2015-04-07 23:28:03 UTC) #13
Daniele Castagna
https://codereview.chromium.org/1051503003/diff/180001/gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc File gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc (left): https://codereview.chromium.org/1051503003/diff/180001/gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc#oldcode245 gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc:245: On 2015/04/07 at 23:28:03, reveman wrote: > nit: typically ...
5 years, 8 months ago (2015-04-08 01:00:28 UTC) #14
reveman
still lgtm but let's land it after https://codereview.chromium.org/1062853002 +piman for gpu/ +alexst for ui/ozone/ https://codereview.chromium.org/1051503003/diff/200001/content/common/gpu/client/gpu_memory_buffer_impl.cc ...
5 years, 8 months ago (2015-04-08 02:57:28 UTC) #16
piman
lgtm
5 years, 8 months ago (2015-04-08 05:05:10 UTC) #17
alexst (slow to review)
lgtm
5 years, 8 months ago (2015-04-08 12:22:28 UTC) #18
Daniele Castagna
https://codereview.chromium.org/1051503003/diff/200001/content/common/gpu/client/gpu_memory_buffer_impl.cc File content/common/gpu/client/gpu_memory_buffer_impl.cc (right): https://codereview.chromium.org/1051503003/diff/200001/content/common/gpu/client/gpu_memory_buffer_impl.cc#newcode85 content/common/gpu/client/gpu_memory_buffer_impl.cc:85: case GpuMemoryBuffer::R_8: On 2015/04/08 at 02:57:28, reveman wrote: > ...
5 years, 8 months ago (2015-04-08 19:16:00 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1051503003/260001
5 years, 8 months ago (2015-04-08 19:17:48 UTC) #25
commit-bot: I haz the power
Committed patchset #9 (id:260001)
5 years, 8 months ago (2015-04-08 20:53:08 UTC) #26
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 20:53:56 UTC) #27
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/51f60b27d0a7c8f1d39674fec24f73e9b55f04e6
Cr-Commit-Position: refs/heads/master@{#324281}

Powered by Google App Engine
This is Rietveld 408576698