|
Add GenericSharedMemoryId and use w/ GpuMemoryBuffer
Adds a GenericSharedMemoryId type which will be used to track various types of shared memory (SharedBitmap, IOSurface, base::SharedMemory).
Wire up GpuMemoryBufferManager so that GpuMemoryBufferId is just a typedef of this type, setting up for further integration in the future.
Note regarding message changes - We needed a way for all GenericSharedMemoryIds used by a process to be unique. Currently a renderer process sometimes internally allocates shared memory and sometimes asks the browser process to do so. In order to allow for consistent naming, we cause the Renderer process to provide an ID to the browser when asking the browser to allocate on its behalf.
+tsepez for message changes.
+piman for content/gpu changes
+danakj/reveman for other changes.
TBR=sky@chromium.org
BUG= 512534
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/c9984ebe42daab4cd51fb928c32d7d1f4f14a9c7
Cr-Commit-Position: refs/heads/master@{#343677}
Total comments: 14
Total comments: 13
Total comments: 8
Total comments: 8
Total comments: 16
Total comments: 3
Total comments: 15
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+218 lines, -72 lines) |
Patch |
 |
M |
cc/test/test_gpu_memory_buffer_manager.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/view_manager/gles2/command_buffer_driver.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/view_manager/gles2/mojo_gpu_memory_buffer.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/browser_io_surface_manager_mac.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/buffer_queue_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/gpu/browser_gpu_memory_buffer_manager.h
|
View
|
1
2
3
4
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/gpu/browser_gpu_memory_buffer_manager.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
10 chunks |
+30 lines, -19 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_message_filter.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_message_filter.cc
|
View
|
|
2 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/child/child_gpu_memory_buffer_manager.cc
|
View
|
9
10
11
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/common/child_process_host_impl.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/common/child_process_host_impl.cc
|
View
|
|
3 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/common/child_process_messages.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
A |
content/common/generic_shared_memory_id_generator.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/common/generic_shared_memory_id_generator.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/gpu_memory_buffer_factory_io_surface.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
4 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/gpu_memory_buffer_factory_surface_texture.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/gpu_memory_buffer_factory_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/common/gpu/gpu_messages.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/content_common.gypi
|
View
|
1
2
3
4
5
6
7
9
10
11
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/gpu/gpu_child_thread.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/tests/gl_manager.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/renderers/mock_gpu_video_accelerator_factories.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/gfx/generic_shared_memory_id.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/gfx/generic_shared_memory_id.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/gfx.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/gpu_memory_buffer.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/gpu_memory_buffer.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+5 lines, -6 lines |
0 comments
|
Download
|
Total messages: 70 (28 generated)
|