|
content: Move type selection logic out of GpuMemoryBufferImpl.
This moves the logic to determine what type of buffer
to allocate out of the GpuMemoryBuffer implementation.
The GpuMemoryBufferImpl class instead provides a
mechanism to query supported types and check if a
format/usage configuration is supported by a specific
type.
This allows us create a generic set of unit tests
that exercise each supported buffer type and it
becomes trivial to add a command line flag for
selecting a preferred GPU memory buffer type.
BUG= 431059
TEST=content_unittests --gtest_filter=GpuMemoryBufferImplTests/GpuMemoryBufferImplTest.*
Committed: https://crrev.com/bc2de2bc9f44493125df09842ce09883217cedaf
Cr-Commit-Position: refs/heads/master@{#304381}
Total comments: 3
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+736 lines, -212 lines) |
Patch |
 |
M |
content/browser/gpu/browser_gpu_memory_buffer_manager.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+11 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/common/android/surface_texture_manager.h
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/common/child_process_host_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+6 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl.h
|
View
|
1
2
3
|
4 chunks |
+27 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+39 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_android.cc
|
View
|
1
2
3
|
3 chunks |
+56 lines, -28 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -21 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_linux.cc
|
View
|
1
2
3
|
4 chunks |
+51 lines, -14 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_mac.cc
|
View
|
1
2
3
|
3 chunks |
+56 lines, -25 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc
|
View
|
1
2
3
|
3 chunks |
+55 lines, -28 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h
|
View
|
1
2
3
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h
|
View
|
1
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc
|
View
|
1
|
4 chunks |
+11 lines, -24 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h
|
View
|
1
2
3
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
|
View
|
1
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
A |
content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+287 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gpu_memory_buffer_impl_win.cc
|
View
|
1
2
3
|
4 chunks |
+51 lines, -14 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/gpu_memory_buffer_factory.h
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/common/gpu/gpu_memory_buffer_factory_io_surface.cc
|
View
|
1
2
3
4
|
2 chunks |
+15 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/content_common.gypi
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+10 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/content_tests.gypi
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/test/content_test_suite_base.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
Total messages: 16 (2 generated)
|