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

Issue 685983005: gpu: Associate all GpuMemoryBuffers with unique IDs. (Closed)

Created:
6 years, 1 month ago by reveman
Modified:
6 years, 1 month ago
CC:
chromium-reviews, ozone-reviews_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

gpu: Associate all GpuMemoryBuffers with unique IDs. This makes the GpuMemoryBufferManager instance on the browser side allocate ids. The result is that each id is unique and that makes management much easier. This also allows some more concrete handling of the client id used for GPU service side allocation of buffers. BUG= Committed: https://crrev.com/510a6e058b4b3783dd7c9af18572d9a97fb257f6 Cr-Commit-Position: refs/heads/master@{#302726}

Patch Set 1 #

Total comments: 5

Patch Set 2 : rebase and address feedback #

Total comments: 2

Patch Set 3 : build fixes #

Total comments: 4

Patch Set 4 : fix mac build #

Patch Set 5 : ozone build fix #

Patch Set 6 : another ozone fix #

Patch Set 7 : one more ozone build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+472 lines, -425 lines) Patch
M content/app/android/child_process_service.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/android/browser_surface_texture_manager.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/android/browser_surface_texture_manager.cc View 1 2 chunks +7 lines, -4 lines 0 comments Download
M content/browser/gpu/browser_gpu_memory_buffer_manager.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/browser_gpu_memory_buffer_manager.cc View 1 5 chunks +7 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_memory_buffer_factory_host_impl.h View 1 1 chunk +9 lines, -8 lines 0 comments Download
M content/browser/gpu/gpu_memory_buffer_factory_host_impl.cc View 1 3 chunks +16 lines, -24 lines 0 comments Download
M content/browser/gpu/gpu_process_host.h View 1 chunk +7 lines, -4 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 chunk +16 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/child/child_gpu_memory_buffer_manager.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M content/common/android/surface_texture_manager.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/common/child_process_host_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/child_process_host_impl.cc View 1 3 chunks +5 lines, -1 line 0 comments Download
M content/common/child_process_messages.h View 1 1 chunk +1 line, -9 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/client/gpu_channel_host.cc View 1 2 chunks +2 lines, -17 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_factory_host.h View 1 chunk +6 lines, -2 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl.h View 1 4 chunks +8 lines, -4 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_android.cc View 1 2 6 chunks +11 lines, -13 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h View 1 2 3 3 chunks +8 lines, -4 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc View 1 5 chunks +28 lines, -27 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_linux.cc View 1 4 chunks +6 lines, -4 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_mac.cc View 1 2 5 chunks +11 lines, -12 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc View 1 2 6 chunks +11 lines, -13 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h View 1 3 chunks +9 lines, -8 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc View 1 6 chunks +27 lines, -29 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h View 2 chunks +6 lines, -3 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc View 1 6 chunks +9 lines, -3 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h View 1 3 chunks +8 lines, -6 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc View 1 7 chunks +29 lines, -33 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_win.cc View 1 4 chunks +6 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.h View 2 chunks +10 lines, -3 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 2 chunks +30 lines, -17 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory.h View 1 chunk +10 lines, -8 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_android.cc View 2 chunks +12 lines, -13 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_io_surface.h View 1 chunk +7 lines, -5 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_io_surface.cc View 3 chunks +12 lines, -9 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_linux.cc View 1 chunk +7 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_mac.cc View 1 2 chunks +12 lines, -13 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_ozone.cc View 1 2 3 4 5 6 2 chunks +21 lines, -17 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_surface_texture.h View 1 chunk +8 lines, -7 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_surface_texture.cc View 2 chunks +14 lines, -12 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_win.cc View 1 chunk +7 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 2 chunks +16 lines, -8 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/ChildProcessService.java View 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java View 1 chunk +3 lines, -7 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/gpu_memory_buffer.h View 2 chunks +2 lines, -16 lines 0 comments Download
M ui/gfx/gpu_memory_buffer.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h View 1 2 3 4 1 chunk +7 lines, -5 lines 0 comments Download
M ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc View 1 2 3 4 3 chunks +15 lines, -10 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
reveman
6 years, 1 month ago (2014-11-04 00:20:59 UTC) #2
piman
This is great, simplifies things quite a bit. I'm still confused about the Android bits ...
6 years, 1 month ago (2014-11-04 01:07:26 UTC) #3
piman
https://codereview.chromium.org/685983005/diff/1/content/browser/android/browser_surface_texture_manager.cc File content/browser/android/browser_surface_texture_manager.cc (right): https://codereview.chromium.org/685983005/diff/1/content/browser/android/browser_surface_texture_manager.cc#newcode99 content/browser/android/browser_surface_texture_manager.cc:99: const int kBrowserClientId = 0; On 2014/11/04 01:07:26, piman ...
6 years, 1 month ago (2014-11-04 01:22:46 UTC) #4
reveman
PTAL https://codereview.chromium.org/685983005/diff/1/content/browser/android/browser_surface_texture_manager.cc File content/browser/android/browser_surface_texture_manager.cc (right): https://codereview.chromium.org/685983005/diff/1/content/browser/android/browser_surface_texture_manager.cc#newcode99 content/browser/android/browser_surface_texture_manager.cc:99: const int kBrowserClientId = 0; On 2014/11/04 01:22:46, ...
6 years, 1 month ago (2014-11-04 06:20:47 UTC) #5
alexst (slow to review)
Nice! I like the explicit client id much better, secondary id was a bit magic. ...
6 years, 1 month ago (2014-11-04 14:24:39 UTC) #6
reveman
https://codereview.chromium.org/685983005/diff/40001/content/common/child_process_host_impl.cc File content/common/child_process_host_impl.cc (right): https://codereview.chromium.org/685983005/diff/40001/content/common/child_process_host_impl.cc#newcode340 content/common/child_process_host_impl.cc:340: g_next_gpu_memory_buffer_id.GetNext(), On 2014/11/04 14:24:39, alexst wrote: > When do ...
6 years, 1 month ago (2014-11-04 18:19:39 UTC) #7
alexst (slow to review)
> This is not different from before this patch and I'd rather not change this ...
6 years, 1 month ago (2014-11-04 18:44:15 UTC) #8
reveman
+kenrb for content/common/*_messages.h +sky for ui/
6 years, 1 month ago (2014-11-04 18:55:05 UTC) #10
piman
lgtm
6 years, 1 month ago (2014-11-04 19:25:04 UTC) #11
sky
LGTM
6 years, 1 month ago (2014-11-04 21:05:40 UTC) #12
kenrb
ipc lgtm
6 years, 1 month ago (2014-11-04 23:58:47 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/685983005/120001
6 years, 1 month ago (2014-11-05 00:03:12 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/685983005/120001
6 years, 1 month ago (2014-11-05 00:45:03 UTC) #19
commit-bot: I haz the power
Committed patchset #7 (id:120001)
6 years, 1 month ago (2014-11-05 00:59:32 UTC) #20
commit-bot: I haz the power
6 years, 1 month ago (2014-11-05 00:59:59 UTC) #21
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/510a6e058b4b3783dd7c9af18572d9a97fb257f6
Cr-Commit-Position: refs/heads/master@{#302726}

Powered by Google App Engine
This is Rietveld 408576698