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

Issue 1403283007: Re-land: ui: Add custom stride support to GLImageMemory. (Closed)

Created:
5 years, 1 month ago by reveman
Modified:
5 years, 1 month 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, rjkroege, sievers+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Re-land: ui: Add custom stride support to GLImageMemory. This improves our support for shared memory pools by allowing clients to create GLImages with a stride that is larger than the row length of the image. This makes it possible to import a buffer with a stride that doesn't match the aligned row size. However, support for mapping of such a buffer is not provided by this patch. BUG=549781 TEST=gl_unittests --gtest_filter=GLImageSharedMemoryPool/GLImageCopyTest/0.CopyTexImage CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/730fd9613f967271a1068c9c39b436fa13c35877 Cr-Commit-Position: refs/heads/master@{#358998}

Patch Set 1 #

Patch Set 2 : type adjustments #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : add static_cast #

Total comments: 1

Patch Set 5 : more missing static_casts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -59 lines) Patch
M cc/test/test_gpu_memory_buffer_manager.cc View 1 5 chunks +11 lines, -4 lines 0 comments Download
M cc/test/test_image_factory.cc View 2 chunks +3 lines, -1 line 0 comments Download
M components/mus/gles2/command_buffer_driver.cc View 2 chunks +4 lines, -1 line 0 comments Download
M components/mus/gles2/command_buffer_local.cc View 2 chunks +4 lines, -1 line 0 comments Download
M components/mus/gles2/mojo_gpu_memory_buffer.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/gpu/browser_gpu_memory_buffer_manager.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/common/child_process_messages.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h View 1 chunk +3 lines, -1 line 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc View 1 2 3 4 7 chunks +14 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_channel.cc View 2 chunks +6 lines, -1 line 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 3 chunks +8 lines, -1 line 0 comments Download
M ui/gfx/gpu_memory_buffer.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_image_memory.h View 2 chunks +5 lines, -1 line 0 comments Download
M ui/gl/gl_image_memory.cc View 1 10 chunks +102 lines, -25 lines 0 comments Download
M ui/gl/gl_image_ref_counted_memory.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M ui/gl/gl_image_shared_memory.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/gl/gl_image_shared_memory.cc View 3 chunks +13 lines, -9 lines 0 comments Download
M ui/gl/gl_image_shared_memory_unittest.cc View 1 2 3 4 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 53 (22 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403283007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403283007/20001
5 years, 1 month ago (2015-11-09 06:29:14 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-09 07:45:23 UTC) #4
reveman
5 years, 1 month ago (2015-11-09 13:04:33 UTC) #6
piman
lgtm
5 years, 1 month ago (2015-11-09 20:11:49 UTC) #7
reveman
+fsamuel for components/mus/gles2/ +kenrb for content/common/child_process_messages.h
5 years, 1 month ago (2015-11-09 20:16:46 UTC) #9
Fady Samuel
mus lgtm
5 years, 1 month ago (2015-11-10 05:42:18 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403283007/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403283007/40001
5 years, 1 month ago (2015-11-10 07:36:57 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-10 09:16:37 UTC) #14
reveman
+wfh for content/common/child_process_messages.h
5 years, 1 month ago (2015-11-10 15:55:27 UTC) #16
Will Harris
we chatted in person about the size_t vs int32_t for stride and I'm satisfied that ...
5 years, 1 month ago (2015-11-10 16:19:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403283007/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403283007/40001
5 years, 1 month ago (2015-11-10 16:20:38 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-10 16:25:37 UTC) #21
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/8b0062c4a359ee651b7fb23707bf3aaf20162990 Cr-Commit-Position: refs/heads/master@{#358835}
5 years, 1 month ago (2015-11-10 16:26:36 UTC) #22
Avi (use Gerrit)
https://codereview.chromium.org/1403283007/diff/40001/ui/gl/gl_image_shared_memory_unittest.cc File ui/gl/gl_image_shared_memory_unittest.cc (right): https://codereview.chromium.org/1403283007/diff/40001/ui/gl/gl_image_shared_memory_unittest.cc#newcode74 ui/gl/gl_image_shared_memory_unittest.cc:74: size.width(), size.height(), stride, gfx::BufferFormat::RGBA_8888, This fails on Win x64 ...
5 years, 1 month ago (2015-11-10 16:42:16 UTC) #24
Avi (use Gerrit)
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1427413004/ by avi@chromium.org. ...
5 years, 1 month ago (2015-11-10 16:42:53 UTC) #25
Will Harris
hmm there goes my security street cred for spotting type conversion issues. :(
5 years, 1 month ago (2015-11-10 16:45:50 UTC) #26
Peter Mayo
https://codereview.chromium.org/1403283007/diff/40001/ui/gl/gl_image_shared_memory.cc File ui/gl/gl_image_shared_memory.cc (right): https://codereview.chromium.org/1403283007/diff/40001/ui/gl/gl_image_shared_memory.cc#newcode74 ui/gl/gl_image_shared_memory.cc:74: format, stride)) { FAILED: ninja -t msvc -e environment.x64 ...
5 years, 1 month ago (2015-11-10 16:47:53 UTC) #28
Peter Mayo
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1437623003/ by petermayo@chromium.org. ...
5 years, 1 month ago (2015-11-10 16:48:27 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403283007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403283007/60001
5 years, 1 month ago (2015-11-10 17:03:20 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-10 18:13:00 UTC) #35
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/f2322f7fb01ba0dc954c94f48bb5e9a9a41c32e2 Cr-Commit-Position: refs/heads/master@{#358850}
5 years, 1 month ago (2015-11-10 18:13:47 UTC) #36
Avi (use Gerrit)
https://codereview.chromium.org/1403283007/diff/60001/components/mus/gles2/mojo_gpu_memory_buffer.cc File components/mus/gles2/mojo_gpu_memory_buffer.cc (right): https://codereview.chromium.org/1403283007/diff/60001/components/mus/gles2/mojo_gpu_memory_buffer.cc#newcode90 components/mus/gles2/mojo_gpu_memory_buffer.cc:90: handle.stride = gfx::RowSizeForBufferFormat(size_.width(), format_, 0); e:\b\build\slave\win_x64_gn__dbg_\build\src\components\mus\gles2\mojo_gpu_memory_buffer.cc(90) :error C2220: warning ...
5 years, 1 month ago (2015-11-10 18:29:08 UTC) #37
Avi (use Gerrit)
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1431333002/ by avi@chromium.org. ...
5 years, 1 month ago (2015-11-10 18:29:29 UTC) #38
robliao
On 2015/11/10 18:29:29, Avi wrote: > A revert of this CL (patchset #4 id:60001) has ...
5 years, 1 month ago (2015-11-10 19:00:13 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403283007/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403283007/80001
5 years, 1 month ago (2015-11-10 19:08:39 UTC) #44
robliao
On 2015/11/10 19:08:39, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
5 years, 1 month ago (2015-11-10 19:15:26 UTC) #45
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-10 20:24:22 UTC) #47
reveman
On 2015/11/10 at 20:24:22, commit-bot wrote: > Dry run: This issue passed the CQ dry ...
5 years, 1 month ago (2015-11-11 01:07:03 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403283007/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403283007/80001
5 years, 1 month ago (2015-11-11 01:09:31 UTC) #51
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 1 month ago (2015-11-11 01:22:51 UTC) #52
commit-bot: I haz the power
5 years, 1 month ago (2015-11-11 01:24:02 UTC) #53
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/730fd9613f967271a1068c9c39b436fa13c35877
Cr-Commit-Position: refs/heads/master@{#358998}

Powered by Google App Engine
This is Rietveld 408576698