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

Issue 916083002: Add support for compressed GPU memory buffers. (Closed)

Created:
5 years, 10 months ago by christiank
Modified:
5 years, 10 months ago
Reviewers:
piman, reveman, jbauman, spang
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, 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 support for compressed GPU memory buffers. This CL adds support for compressed GPU buffer formats. BUG=434699 Committed: https://crrev.com/3113db1250a2687c030585f6045f2ef242b98db6 Cr-Commit-Position: refs/heads/master@{#317765} Committed: https://crrev.com/07b6d8b077f5a5e09b1106c7aa6d916e5d4f9e63 Cr-Commit-Position: refs/heads/master@{#318004}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Replace MemoryBytes with SizeInBytes #

Patch Set 3 : Add ATC and DXT feature detection and checking #

Total comments: 10

Patch Set 4 : Compressed format detection in own function and image size check #

Total comments: 4

Patch Set 5 : Address nits #

Patch Set 6 : Fix signed/unsigned compare #

Patch Set 7 : Make SizeInBytes return type GLsizei #

Patch Set 8 : Fix ozone #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -33 lines) Patch
M cc/test/test_gpu_memory_buffer_manager.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl.cc View 1 2 3 4 3 chunks +16 lines, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 5 2 chunks +28 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_io_surface.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/capabilities.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/capabilities.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 2 4 chunks +18 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/image_factory.cc View 3 chunks +20 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M gpu/ipc/gpu_command_buffer_traits_multi.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gfx/gpu_memory_buffer.h View 1 chunk +12 lines, -1 line 0 comments Download
M ui/gl/gl_image_linux_dma_buffer.cc View 3 chunks +25 lines, -0 lines 0 comments Download
M ui/gl/gl_image_memory.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gl/gl_image_memory.cc View 1 2 3 4 5 6 10 chunks +156 lines, -32 lines 0 comments Download
M ui/gl/gl_image_shared_memory.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (13 generated)
christiank
Hello, Here's another CL that adds functionality needed by the tile texture compression feature. It's ...
5 years, 10 months ago (2015-02-11 13:06:29 UTC) #2
reveman
https://codereview.chromium.org/916083002/diff/1/ui/gl/gl_image_memory.cc File ui/gl/gl_image_memory.cc (right): https://codereview.chromium.org/916083002/diff/1/ui/gl/gl_image_memory.cc#newcode243 ui/gl/gl_image_memory.cc:243: glCompressedTexSubImage2D(target, Should we avoid calling CompressedTexSubImage2D if the format ...
5 years, 10 months ago (2015-02-11 13:58:42 UTC) #3
christiank
https://codereview.chromium.org/916083002/diff/1/ui/gl/gl_image_memory.cc File ui/gl/gl_image_memory.cc (right): https://codereview.chromium.org/916083002/diff/1/ui/gl/gl_image_memory.cc#newcode243 ui/gl/gl_image_memory.cc:243: glCompressedTexSubImage2D(target, On 2015/02/11 13:58:40, reveman wrote: > Should we ...
5 years, 10 months ago (2015-02-12 08:41:52 UTC) #4
reveman
https://codereview.chromium.org/916083002/diff/1/ui/gl/gl_image_memory.cc File ui/gl/gl_image_memory.cc (right): https://codereview.chromium.org/916083002/diff/1/ui/gl/gl_image_memory.cc#newcode243 ui/gl/gl_image_memory.cc:243: glCompressedTexSubImage2D(target, On 2015/02/12 08:41:52, christiank wrote: > On 2015/02/11 ...
5 years, 10 months ago (2015-02-12 12:51:28 UTC) #5
christiank
https://codereview.chromium.org/916083002/diff/1/ui/gl/gl_image_memory.cc File ui/gl/gl_image_memory.cc (right): https://codereview.chromium.org/916083002/diff/1/ui/gl/gl_image_memory.cc#newcode243 ui/gl/gl_image_memory.cc:243: glCompressedTexSubImage2D(target, On 2015/02/12 12:51:28, reveman wrote: > On 2015/02/12 ...
5 years, 10 months ago (2015-02-12 13:54:43 UTC) #6
reveman
https://codereview.chromium.org/916083002/diff/1/ui/gl/gl_image_memory.cc File ui/gl/gl_image_memory.cc (right): https://codereview.chromium.org/916083002/diff/1/ui/gl/gl_image_memory.cc#newcode243 ui/gl/gl_image_memory.cc:243: glCompressedTexSubImage2D(target, On 2015/02/12 13:54:42, christiank wrote: > On 2015/02/12 ...
5 years, 10 months ago (2015-02-12 14:18:00 UTC) #7
christiank
https://codereview.chromium.org/916083002/diff/1/ui/gl/gl_image_memory.cc File ui/gl/gl_image_memory.cc (right): https://codereview.chromium.org/916083002/diff/1/ui/gl/gl_image_memory.cc#newcode243 ui/gl/gl_image_memory.cc:243: glCompressedTexSubImage2D(target, On 2015/02/12 14:18:00, reveman wrote: > On 2015/02/12 ...
5 years, 10 months ago (2015-02-13 10:08:36 UTC) #8
reveman
lgtm % piman's review and adding utility function for format check https://codereview.chromium.org/916083002/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): ...
5 years, 10 months ago (2015-02-13 23:51:25 UTC) #10
piman
We need to be very careful with the block size. https://codereview.chromium.org/916083002/diff/40001/ui/gl/gl_image_memory.cc File ui/gl/gl_image_memory.cc (right): https://codereview.chromium.org/916083002/diff/40001/ui/gl/gl_image_memory.cc#newcode162 ...
5 years, 10 months ago (2015-02-14 00:50:21 UTC) #11
christiank
https://codereview.chromium.org/916083002/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/916083002/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc#newcode987 content/common/gpu/gpu_command_buffer_stub.cc:987: } On 2015/02/13 23:51:25, reveman wrote: > Looks good. ...
5 years, 10 months ago (2015-02-18 14:38:25 UTC) #12
reveman
https://codereview.chromium.org/916083002/diff/40001/ui/gl/gl_image_memory.cc File ui/gl/gl_image_memory.cc (right): https://codereview.chromium.org/916083002/diff/40001/ui/gl/gl_image_memory.cc#newcode162 ui/gl/gl_image_memory.cc:162: DCHECK_EQ(width % 2, 0U); On 2015/02/18 at 14:38:25, christiank ...
5 years, 10 months ago (2015-02-18 16:10:30 UTC) #13
christiank
https://codereview.chromium.org/916083002/diff/40001/ui/gl/gl_image_memory.cc File ui/gl/gl_image_memory.cc (right): https://codereview.chromium.org/916083002/diff/40001/ui/gl/gl_image_memory.cc#newcode162 ui/gl/gl_image_memory.cc:162: DCHECK_EQ(width % 2, 0U); On 2015/02/18 16:10:30, reveman wrote: ...
5 years, 10 months ago (2015-02-19 10:56:56 UTC) #15
reveman
thanks! lgtm
5 years, 10 months ago (2015-02-19 14:21:53 UTC) #16
piman
LGTM+nits https://codereview.chromium.org/916083002/diff/60001/content/common/gpu/client/gpu_memory_buffer_impl.cc File content/common/gpu/client/gpu_memory_buffer_impl.cc (right): https://codereview.chromium.org/916083002/diff/60001/content/common/gpu/client/gpu_memory_buffer_impl.cc#newcode92 content/common/gpu/client/gpu_memory_buffer_impl.cc:92: DCHECK_EQ(width % 2, 0U); Could we add a ...
5 years, 10 months ago (2015-02-19 23:52:04 UTC) #17
christiank
jbauman, would you please have a look? Thanks! https://codereview.chromium.org/916083002/diff/60001/content/common/gpu/client/gpu_memory_buffer_impl.cc File content/common/gpu/client/gpu_memory_buffer_impl.cc (right): https://codereview.chromium.org/916083002/diff/60001/content/common/gpu/client/gpu_memory_buffer_impl.cc#newcode92 content/common/gpu/client/gpu_memory_buffer_impl.cc:92: DCHECK_EQ(width ...
5 years, 10 months ago (2015-02-20 08:32:15 UTC) #19
jbauman
lgtm
5 years, 10 months ago (2015-02-20 23:27:50 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/916083002/80001
5 years, 10 months ago (2015-02-23 07:36:36 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/45383) linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 10 months ago (2015-02-23 08:02:48 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/916083002/100001
5 years, 10 months ago (2015-02-23 08:47:00 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/61506)
5 years, 10 months ago (2015-02-23 08:49:55 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/916083002/120001
5 years, 10 months ago (2015-02-24 07:03:12 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-02-24 08:19:58 UTC) #32
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/3113db1250a2687c030585f6045f2ef242b98db6 Cr-Commit-Position: refs/heads/master@{#317765}
5 years, 10 months ago (2015-02-24 08:21:11 UTC) #33
phoglund_chromium
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/948323002/ by phoglund@chromium.org. ...
5 years, 10 months ago (2015-02-24 08:57:13 UTC) #34
christiank
spang, would you please have a look at the ozone changes that I forgot to ...
5 years, 10 months ago (2015-02-24 11:23:14 UTC) #36
spang
lgtm
5 years, 10 months ago (2015-02-24 18:09:22 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/916083002/140001
5 years, 10 months ago (2015-02-25 08:02:38 UTC) #40
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 10 months ago (2015-02-25 09:41:38 UTC) #41
commit-bot: I haz the power
5 years, 10 months ago (2015-02-25 09:42:22 UTC) #42
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/07b6d8b077f5a5e09b1106c7aa6d916e5d4f9e63
Cr-Commit-Position: refs/heads/master@{#318004}

Powered by Google App Engine
This is Rietveld 408576698