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

Issue 1417363006: ui: Add support for creating GLImage instances from shared memory pools. (Closed)

Created:
5 years, 2 months ago by reveman
Modified:
5 years, 1 month ago
Reviewers:
kenrb, Fady Samuel, piman
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, feature-media-reviews_chromium.org, jam, jbauman+watch_chromium.org, kalyank, mcasas+watch_chromium.org, miu+watch_chromium.org, piman+watch_chromium.org, posciak+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@usage-rename
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ui: Add support for creating GLImage instances from shared memory pools. This adds an offset field to the GpuMemoryBufferHandle struct that allows shared memory backed GLImages to be created from a pool of shared memory. This is useful when importing buffers as it allows the clients to manage the memory used for buffers. BUG=538325 TEST=gl_unittests --gtest_filter=GLImageSharedMemoryPool/GLImageCopyTest/0.CopyTexImage CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/9291c758490f36fb7139e2a6a8c341e118037d3a Cr-Commit-Position: refs/heads/master@{#356212}

Patch Set 1 #

Patch Set 2 : windows build fix #

Total comments: 4

Patch Set 3 : use uint32_t #

Patch Set 4 : mojo and win build fixes #

Patch Set 5 : static_cast<off_t> to make windows build happy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -24 lines) Patch
M cc/test/test_gpu_memory_buffer_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/test_image_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/mus/gles2/command_buffer_driver.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/mus/gles2/command_buffer_local.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/mus/gles2/mojo_gpu_memory_buffer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_buffer_pool.cc View 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 2 1 chunk +3 lines, -1 line 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc View 1 2 7 chunks +23 lines, -11 lines 0 comments Download
M content/common/gpu/gpu_channel.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ui/gfx/gpu_memory_buffer.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_image_shared_memory.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ui/gl/gl_image_shared_memory.cc View 1 2 3 4 3 chunks +18 lines, -3 lines 0 comments Download
M ui/gl/gl_image_shared_memory_unittest.cc View 1 2 3 chunks +37 lines, -1 line 0 comments Download

Messages

Total messages: 26 (10 generated)
reveman
5 years, 1 month ago (2015-10-26 12:28:14 UTC) #2
piman
https://codereview.chromium.org/1417363006/diff/20001/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc File content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc (right): https://codereview.chromium.org/1417363006/diff/20001/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc#newcode171 content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc:171: DCHECK_EQ(offset_, 0) << "Buffer offset is not supported by ...
5 years, 1 month ago (2015-10-26 16:17:50 UTC) #3
reveman
ptal https://codereview.chromium.org/1417363006/diff/20001/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc File content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc (right): https://codereview.chromium.org/1417363006/diff/20001/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc#newcode171 content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc:171: DCHECK_EQ(offset_, 0) << "Buffer offset is not supported ...
5 years, 1 month ago (2015-10-26 17:25:34 UTC) #4
piman
lgtm
5 years, 1 month ago (2015-10-26 17:39:08 UTC) #5
reveman
+kenrb for content/common/child_process_messages.h
5 years, 1 month ago (2015-10-26 20:41:55 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417363006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417363006/40001
5 years, 1 month ago (2015-10-26 20:42:38 UTC) #9
kenrb
ipc lgtm
5 years, 1 month ago (2015-10-26 20:43:49 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/149374)
5 years, 1 month ago (2015-10-26 21:01:43 UTC) #12
reveman
+fsamuel for components/mus/gles2/
5 years, 1 month ago (2015-10-26 21:27:51 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417363006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417363006/60001
5 years, 1 month ago (2015-10-26 21:28:33 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417363006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417363006/80001
5 years, 1 month ago (2015-10-26 22:00:28 UTC) #18
Fady Samuel
MUS lgtm
5 years, 1 month ago (2015-10-26 22:23:44 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/122119)
5 years, 1 month ago (2015-10-26 23:45:17 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417363006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417363006/80001
5 years, 1 month ago (2015-10-26 23:59:48 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 1 month ago (2015-10-27 02:39:18 UTC) #25
commit-bot: I haz the power
5 years, 1 month ago (2015-10-27 02:40:08 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9291c758490f36fb7139e2a6a8c341e118037d3a
Cr-Commit-Position: refs/heads/master@{#356212}

Powered by Google App Engine
This is Rietveld 408576698