|
Refactor GL surface format handling
Replace the GLSurface::Format enum with a proper class in preparation to
supporting types with configurable depth_size / samples / stencil_size.
Doing this in the current enum format would lead to a combinatorial
explosion.
The basic idea is that GetFormat can be used to initialize a new
surface with the same format as a pre-existing surface, and a
IsCompatible predicate is used to check if two formats are
equivalent for the purpose of avoiding BAD_MATCH errors. Code
should no longer be comparing formats to SURFACE_DEFAULT or similar.
Also add a new CreateOffscreenGLSurfaceWithFormat function that can
be used to request a specific surface format.
(These changes were suggested during review of https://crrev.com/2461803002 which is now forked into https://crrev.com/2586803003 .)
BUG= 655722
CQ_INCLUDE_TRYBOTS=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/2616723002
Cr-Commit-Position: refs/heads/master@{#441993}
Committed: https://chromium.googlesource.com/chromium/src/+/ec8edae43017bf5ea65d3b65edbcfd740af453c7
Total comments: 4
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+427 lines, -120 lines) |
Patch |
|
M |
gpu/command_buffer/service/gl_surface_mock.h
|
View
|
1
2
3
4
5
6
9
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
gpu/command_buffer/tests/gl_dynamic_config_unittest.cc
|
View
|
1
2
3
9
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
gpu/ipc/in_process_command_buffer.cc
|
View
|
9
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
gpu/ipc/service/gpu_command_buffer_stub.cc
|
View
|
1
2
3
9
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
gpu/ipc/service/image_transport_surface.h
|
View
|
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gpu/ipc/service/image_transport_surface_android.cc
|
View
|
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gpu/ipc/service/image_transport_surface_linux.cc
|
View
|
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gpu/ipc/service/image_transport_surface_mac.mm
|
View
|
1
2
3
4
9
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
gpu/ipc/service/image_transport_surface_overlay_mac.h
|
View
|
1
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gpu/ipc/service/image_transport_surface_overlay_mac.mm
|
View
|
1
2
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gpu/ipc/service/image_transport_surface_win.cc
|
View
|
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gpu/ipc/service/pass_through_image_transport_surface.h
|
View
|
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gpu/ipc/service/pass_through_image_transport_surface.cc
|
View
|
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ui/gl/BUILD.gn
|
View
|
1
2
3
9
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_context_osmesa.cc
|
View
|
1
2
3
9
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface.h
|
View
|
9
|
6 chunks |
+13 lines, -14 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface.cc
|
View
|
9
|
6 chunks |
+14 lines, -8 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface_egl.h
|
View
|
9
|
5 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface_egl.cc
|
View
|
1
2
3
9
|
10 chunks |
+18 lines, -22 lines |
0 comments
|
Download
|
|
A |
ui/gl/gl_surface_format.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+73 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gl/gl_surface_format.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+126 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gl/gl_surface_format_unittest.cc
|
View
|
1
2
3
9
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface_glx.h
|
View
|
9
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface_glx.cc
|
View
|
9
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface_osmesa.h
|
View
|
9
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface_osmesa.cc
|
View
|
1
2
3
9
|
4 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface_osmesa_win.h
|
View
|
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface_osmesa_win.cc
|
View
|
1
2
3
9
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface_osmesa_x11.h
|
View
|
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface_osmesa_x11.cc
|
View
|
1
2
3
9
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface_wgl.h
|
View
|
9
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface_wgl.cc
|
View
|
9
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/gl/init/gl_factory.h
|
View
|
9
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/gl/init/gl_factory.cc
|
View
|
9
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/gl/init/gl_factory_android.cc
|
View
|
1
2
3
4
9
|
1 chunk |
+9 lines, -6 lines |
0 comments
|
Download
|
|
M |
ui/gl/init/gl_factory_mac.cc
|
View
|
1
2
3
9
|
2 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
|
M |
ui/gl/init/gl_factory_ozone.cc
|
View
|
1
2
3
4
9
|
2 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/gl/init/gl_factory_win.cc
|
View
|
1
2
3
9
|
1 chunk |
+9 lines, -5 lines |
0 comments
|
Download
|
|
M |
ui/gl/init/gl_factory_x11.cc
|
View
|
1
2
3
9
|
1 chunk |
+9 lines, -5 lines |
0 comments
|
Download
|
|
M |
ui/ozone/platform/drm/gpu/gbm_surfaceless.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ui/ozone/platform/drm/gpu/gbm_surfaceless.cc
|
View
|
1
2
3
4
5
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 57 (42 generated)
|