Attention is currently required from: ccameron, Geoff Lang.
Jonah Ryan-Davis would like ccameron and Geoff Lang to review this change.
Specify ANGLE implementation in list of allowed GL implementations.
This CL changes the list of allowed GLImplementations to a list of
GLImplementationParts, which specifies the ANGLE implementation as
well. Using ANGLEImplementation::kDefault will allow any ANGLE
implementation. This is a prerequisite for running headless Ozone
with SwANGLE without allowing ANGLE to run on the GPU.
Bug: chromium:1065472
Bug: chromium:1227864
Change-Id: I2de80f33756d61f92856e71098468742e217f521
---
M gpu/command_buffer/tests/gl_test_utils.cc
M ui/gl/gl_implementation.cc
M ui/gl/gl_implementation.h
M ui/gl/init/gl_factory.cc
M ui/gl/init/gl_factory.h
M ui/gl/init/gl_factory_android.cc
M ui/gl/init/gl_factory_linux_x11.cc
M ui/gl/init/gl_factory_linux_x11.h
M ui/gl/init/gl_factory_mac.cc
M ui/gl/init/gl_factory_ozone.cc
M ui/gl/init/gl_factory_win.cc
M ui/gl/test/gl_image_test_support.cc
M ui/gl/test/gl_surface_test_support.cc
M ui/ozone/platform/cast/surface_factory_cast.cc
M ui/ozone/platform/cast/surface_factory_cast.h
M ui/ozone/platform/drm/gpu/gbm_surface_factory.cc
M ui/ozone/platform/drm/gpu/gbm_surface_factory.h
M ui/ozone/platform/headless/headless_surface_factory.cc
M ui/ozone/platform/headless/headless_surface_factory.h
M ui/ozone/platform/scenic/scenic_surface_factory.cc
M ui/ozone/platform/scenic/scenic_surface_factory.h
M ui/ozone/platform/wayland/gpu/wayland_surface_factory.cc
M ui/ozone/platform/wayland/gpu/wayland_surface_factory.h
M ui/ozone/platform/windows/windows_surface_factory.cc
M ui/ozone/platform/windows/windows_surface_factory.h
M ui/ozone/platform/x11/x11_surface_factory.cc
M ui/ozone/platform/x11/x11_surface_factory.h
M ui/ozone/public/surface_factory_ozone.cc
M ui/ozone/public/surface_factory_ozone.h
29 files changed, 122 insertions(+), 82 deletions(-)
To view, visit change 3024410. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: ccameron, Geoff Lang.
Patch set 4:Commit-Queue +1
Attention is currently required from: ccameron, Geoff Lang.
1 comment:
Patchset:
PTAL
To view, visit change 3024410. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: ccameron, Geoff Lang.
2 comments:
File ui/ozone/platform/wayland/gpu/wayland_surface_factory.cc:
Patch Set #3, Line 149: impls.push_back(gl::GLImplementationParts(gl::kGLImplementationEGLGLES2));
use emplace_back instead of push_back (https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-emplace.html)
Please fix.
Patch Set #3, Line 150: impls.push_back(
use emplace_back instead of push_back (https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-emplace.html)
Please fix.
To view, visit change 3024410. To unsubscribe, or for help writing mail filters, visit settings.
File ui/ozone/platform/headless/headless_surface_factory.cc:
Patch Set #5, Line 231: gl::GLImplementationParts(gl::ANGLEImplementation::kSwiftShader)};
These changes were meant for a follow-up CL, will remove
case gl::kGLImplementationEGLANGLE:
return (implementation.angle == gl::ANGLEImplementation::kSwiftShader)
? swiftshader_implementation_.get()
: nullptr;
These changes were meant for a follow-up CL, will remove
To view, visit change 3024410. To unsubscribe, or for help writing mail filters, visit settings.
File ui/ozone/platform/headless/headless_surface_factory.cc:
Patch Set #5, Line 231: gl::GLImplementationParts(gl::ANGLEImplementation::kSwiftShader)};
These changes were meant for a follow-up CL, will remove
Done
case gl::kGLImplementationEGLANGLE:
return (implementation.angle == gl::ANGLEImplementation::kSwiftShader)
? swiftshader_implementation_.get()
: nullptr;
These changes were meant for a follow-up CL, will remove
Done
To view, visit change 3024410. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: ccameron, Jonah Ryan-Davis.
Patch set 7:Code-Review +1
1 comment:
Patchset:
LGTM
To view, visit change 3024410. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: ccameron, Jonah Ryan-Davis.
Patch set 7:Code-Review +1
To view, visit change 3024410. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: ccameron, Kenneth Russell.
Jonah Ryan-Davis would like Kenneth Russell to review this change.
29 files changed, 143 insertions(+), 82 deletions(-)
Attention is currently required from: ccameron, Jonah Ryan-Davis.
Patch set 7:Code-Review +1
2 comments:
Patchset:
lgtm once this passes tests, and with a comment added.
File ui/gl/gl_implementation.cc:
Patch Set #7, Line 62: if (gl == kGLImplementationEGLANGLE &&
Could you please add a comment here describing exactly what this is testing for and why?
To view, visit change 3024410. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: ccameron.
Jonah Ryan-Davis removed a vote from this change.
To view, visit change 3024410. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: ccameron.
Patch set 8:Code-Review +1
Attention is currently required from: ccameron.
1 comment:
File ui/gl/gl_implementation.cc:
Patch Set #7, Line 62: if (gl == kGLImplementationEGLANGLE &&
Could you please add a comment here describing exactly what this is testing for and why?
Done
To view, visit change 3024410. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: ccameron.
Patch set 8:Commit-Queue +2
Chromium LUCI CQ submitted this change.
Specify ANGLE implementation in list of allowed GL implementations.
This CL changes the list of allowed GLImplementations to a list of
GLImplementationParts, which specifies the ANGLE implementation as
well. Using ANGLEImplementation::kDefault will allow any ANGLE
implementation. This is a prerequisite for running headless Ozone
with SwANGLE without allowing ANGLE to run on the GPU.
Bug: chromium:1065472
Bug: chromium:1227864
Change-Id: I2de80f33756d61f92856e71098468742e217f521
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3024410
Reviewed-by: Geoff Lang <geof...@chromium.org>
Reviewed-by: Michael Spang <sp...@chromium.org>
Reviewed-by: Kenneth Russell <k...@chromium.org>
Commit-Queue: Jonah Ryan-Davis <jon...@google.com>
Cr-Commit-Position: refs/heads/master@{#902831}
29 files changed, 146 insertions(+), 82 deletions(-)
To view, visit change 3024410. To unsubscribe, or for help writing mail filters, visit settings.