Skip to content

Commit 7f309f5

Browse files
committed
FIXUP: Qt GN integration
Remove guards for GLX. Change-Id: Ia3a2e3cc752e1a7d7e43ec9afe82c768f7970132 Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/596601 Reviewed-by: Allan Sandfeld Jensen <[email protected]>
1 parent bcde3a8 commit 7f309f5

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

chromium/ui/gl/init/gl_factory_ozone.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ bool GetGLWindowSystemBindingInfo(const GLVersionInfo& gl_info,
3232
: false;
3333
}
3434

35-
#if !defined(TOOLKIT_QT)
3635
scoped_refptr<GLContext> CreateGLContext(GLShareGroup* share_group,
3736
GLSurface* compatible_surface,
3837
const GLContextAttribs& attribs) {
@@ -108,7 +107,6 @@ scoped_refptr<GLSurface> CreateOffscreenGLSurface(GLDisplay* display,
108107
}
109108
return nullptr;
110109
}
111-
#endif
112110

113111
void SetDisabledExtensionsPlatform(const std::string& disabled_extensions) {
114112
if (HasGLOzone()) {

chromium/ui/gl/init/gl_initializer_ozone.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
namespace gl {
1919
namespace init {
2020

21-
#if !defined(TOOLKIT_QT)
2221
GLDisplay* InitializeGLOneOffPlatform(gl::GpuPreference gpu_preference) {
2322
if (HasGLOzone()) {
2423
gl::GLDisplayEglUtil::SetInstance(gl::GLDisplayEglUtilOzone::GetInstance());
@@ -38,7 +37,6 @@ GLDisplay* InitializeGLOneOffPlatform(gl::GpuPreference gpu_preference) {
3837
}
3938
return nullptr;
4039
}
41-
#endif
4240

4341
bool InitializeStaticGLBindings(GLImplementationParts implementation) {
4442
// Prevent reinitialization with a different implementation. Once the gpu

chromium/ui/ozone/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if (ozone_platform_wayland) {
6060
ozone_platform_ui_test_support_deps += [ "platform/wayland:ui_test_support" ]
6161
}
6262

63-
if (ozone_platform_x11) {
63+
if (ozone_platform_x11 && !is_qtwebengine) {
6464
ozone_platforms += [ "x11" ]
6565
ozone_platform_deps += [ "platform/x11" ]
6666
ozone_platform_ui_test_support_deps += [ "platform/x11:test_support" ]

0 commit comments

Comments
 (0)