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

Issue 2819803002: Reorganize GUIDs for GPU memory buffers (Closed)

Created:
3 years, 8 months ago by hajimehoshi
Modified:
3 years, 8 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mac-reviews_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, ssid
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reorganize GUIDs for GPU memory buffers This CL replaces current GUID generators (GetGenericSharedMemoryGUID- -ForTracing and GetGpuMemoryBufferGUIDForTracing) with new GUID generators GetSharedMemoryGUIDForTracing and GetGenericSharedGpumemory- -GUIDForTracing. The formater is used for GPU memory buffer that use base::SharedMemory, and the latter is not. This fix is required to know shared memory usages on memory-infra accurately. BUG=604726 TEST=n/a CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2819803002 Cr-Commit-Position: refs/heads/master@{#465529} Committed: https://chromium.googlesource.com/chromium/src/+/7c6261c7a497796269a6befd9efd7dfca9957fe8

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address on reviews #

Total comments: 11

Patch Set 3 : Move GetGUIDForTracing from handle to GpuMemoryBuffer #

Total comments: 4

Patch Set 4 : Address on reviews #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -24 lines) Patch
M cc/raster/staging_buffer_pool.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/gpu/browser_gpu_memory_buffer_manager.cc View 1 chunk +8 lines, -3 lines 0 comments Download
M gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M media/video/gpu_memory_buffer_video_frame_pool.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M ui/gfx/generic_shared_memory_id.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/generic_shared_memory_id.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/gfx/gpu_memory_buffer.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M ui/gfx/gpu_memory_buffer.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M ui/gfx/gpu_memory_buffer_tracing.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/gpu_memory_buffer_tracing.cc View 1 chunk +8 lines, -6 lines 0 comments Download
M ui/gl/gl_image_io_surface.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gl/gl_image_shared_memory.cc View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 45 (27 generated)
hajimehoshi
PTAL
3 years, 8 months ago (2017-04-14 11:25:20 UTC) #10
DaleCurtis
lgtm % q. https://codereview.chromium.org/2819803002/diff/1/media/video/gpu_memory_buffer_video_frame_pool.cc File media/video/gpu_memory_buffer_video_frame_pool.cc (right): https://codereview.chromium.org/2819803002/diff/1/media/video/gpu_memory_buffer_video_frame_pool.cc#newcode475 media/video/gpu_memory_buffer_video_frame_pool.cc:475: const auto& shared_buffer_guid = is const& ...
3 years, 8 months ago (2017-04-14 18:27:32 UTC) #15
ericrk
One comment, but otherwise LGTM, thanks for the refactor! https://codereview.chromium.org/2819803002/diff/1/cc/raster/staging_buffer_pool.cc File cc/raster/staging_buffer_pool.cc (right): https://codereview.chromium.org/2819803002/diff/1/cc/raster/staging_buffer_pool.cc#newcode118 cc/raster/staging_buffer_pool.cc:118: ...
3 years, 8 months ago (2017-04-14 19:49:40 UTC) #16
jbauman
lgtm
3 years, 8 months ago (2017-04-14 22:10:30 UTC) #17
hajimehoshi
Thank you! https://codereview.chromium.org/2819803002/diff/1/cc/raster/staging_buffer_pool.cc File cc/raster/staging_buffer_pool.cc (right): https://codereview.chromium.org/2819803002/diff/1/cc/raster/staging_buffer_pool.cc#newcode118 cc/raster/staging_buffer_pool.cc:118: if (gpu_memory_buffer->GetHandle().type == gfx::SHARED_MEMORY_BUFFER) { On 2017/04/14 ...
3 years, 8 months ago (2017-04-17 06:18:07 UTC) #20
hajimehoshi
+msw for ui/gfx/* PTAL
3 years, 8 months ago (2017-04-17 06:20:08 UTC) #22
reveman
https://codereview.chromium.org/2819803002/diff/20001/cc/raster/staging_buffer_pool.cc File cc/raster/staging_buffer_pool.cc (right): https://codereview.chromium.org/2819803002/diff/20001/cc/raster/staging_buffer_pool.cc#newcode118 cc/raster/staging_buffer_pool.cc:118: gpu_memory_buffer->GetHandle().GetGUIDForTracing(tracing_process_id); We shouldn't be using the handle for non-IPC ...
3 years, 8 months ago (2017-04-17 13:21:06 UTC) #25
ericrk
https://codereview.chromium.org/2819803002/diff/20001/ui/gfx/gpu_memory_buffer.cc File ui/gfx/gpu_memory_buffer.cc (right): https://codereview.chromium.org/2819803002/diff/20001/ui/gfx/gpu_memory_buffer.cc#newcode56 ui/gfx/gpu_memory_buffer.cc:56: if (type == gfx::SHARED_MEMORY_BUFFER) On 2017/04/17 13:21:06, reveman wrote: ...
3 years, 8 months ago (2017-04-17 18:10:15 UTC) #26
hajimehoshi
Thank you! https://codereview.chromium.org/2819803002/diff/20001/cc/raster/staging_buffer_pool.cc File cc/raster/staging_buffer_pool.cc (right): https://codereview.chromium.org/2819803002/diff/20001/cc/raster/staging_buffer_pool.cc#newcode118 cc/raster/staging_buffer_pool.cc:118: gpu_memory_buffer->GetHandle().GetGUIDForTracing(tracing_process_id); On 2017/04/17 13:21:06, reveman wrote: > ...
3 years, 8 months ago (2017-04-18 08:21:59 UTC) #28
reveman
thanks for explaining. long term plan sounds good. lgtm + nits https://codereview.chromium.org/2819803002/diff/40001/ui/gfx/gpu_memory_buffer.cc File ui/gfx/gpu_memory_buffer.cc (right): ...
3 years, 8 months ago (2017-04-18 13:44:53 UTC) #33
danakj
ui/gfx/generic_shared_memory_id.* lgtm
3 years, 8 months ago (2017-04-18 13:50:36 UTC) #34
msw
Looks like danakj@ and reveman@ cover your ui/gfx/OWNERS needs. (thanks for reviewing, I do not ...
3 years, 8 months ago (2017-04-18 17:12:00 UTC) #35
Primiano Tucci (use gerrit)
On 2017/04/18 17:12:00, msw wrote: > Looks like danakj@ and reveman@ cover your ui/gfx/OWNERS needs. ...
3 years, 8 months ago (2017-04-18 19:46:17 UTC) #36
hajimehoshi
On 2017/04/18 19:46:17, Primiano Tucci wrote: > On 2017/04/18 17:12:00, msw wrote: > > Looks ...
3 years, 8 months ago (2017-04-19 05:39:05 UTC) #37
hajimehoshi
Thank you! https://codereview.chromium.org/2819803002/diff/40001/ui/gfx/gpu_memory_buffer.cc File ui/gfx/gpu_memory_buffer.cc (right): https://codereview.chromium.org/2819803002/diff/40001/ui/gfx/gpu_memory_buffer.cc#newcode55 ui/gfx/gpu_memory_buffer.cc:55: auto handle = GetHandle(); On 2017/04/18 13:44:52, ...
3 years, 8 months ago (2017-04-19 06:15:12 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2819803002/60001
3 years, 8 months ago (2017-04-19 06:16:36 UTC) #41
Primiano Tucci (use gerrit)
On 2017/04/19 05:39:05, hajimehoshi wrote: > On 2017/04/18 19:46:17, Primiano Tucci wrote: > > On ...
3 years, 8 months ago (2017-04-19 08:07:26 UTC) #42
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 08:17:06 UTC) #45
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/7c6261c7a497796269a6befd9efd...

Powered by Google App Engine
This is Rietveld 408576698