[//ui] Remove GLSurfaceEGL adding ES2 bit [chromium/src : main]

0 views
Skip to first unread message

Vasiliy Telezhnikov (Gerrit)

unread,
Oct 3, 2025, 10:40:29 AM (4 days ago) Oct 3
to Colin Blundell, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org
Attention needed from Colin Blundell

Vasiliy Telezhnikov added 1 comment

File ui/gl/gl_surface_egl.cc
Line 145, Patchset 1 (Parent): renderable_types.push_back(EGL_OPENGL_ES2_BIT);
Vasiliy Telezhnikov . unresolved

Removing this will fail this function on devices that can't support ES3 and then it will fail context creation [here](https://source.chromium.org/chromium/chromium/src/+/main:ui/gl/gl_context_egl.cc;drc=0177114415e98506c6628baeee472cd2f0be6c34;l=100).

Essentially this code goes to EGL subsystem and asks what what configs it supports matching what we need, kinda very wonky API.

And we ask for any config that has at least 8 bits in each channel (unless we want 565) AND renderable type is ES3 / ES2 (AND surface type is whatever we need). If we filter configs that require ES3, ES2 driver will find none.

Open in Gerrit

Related details

Attention is currently required from:
  • Colin Blundell
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5dc206fb5315d20b82daf8719b5f664af4522b8c
Gerrit-Change-Number: 7003394
Gerrit-PatchSet: 1
Gerrit-Owner: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
Gerrit-Attention: Colin Blundell <blun...@chromium.org>
Gerrit-Comment-Date: Fri, 03 Oct 2025 14:40:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Colin Blundell (Gerrit)

unread,
Oct 6, 2025, 3:47:28 AM (yesterday) Oct 6
to Colin Blundell, Vasiliy Telezhnikov, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org
Attention needed from Vasiliy Telezhnikov

Colin Blundell added 1 comment

File ui/gl/gl_surface_egl.cc
Line 145, Patchset 1 (Parent): renderable_types.push_back(EGL_OPENGL_ES2_BIT);
Vasiliy Telezhnikov . unresolved

Removing this will fail this function on devices that can't support ES3 and then it will fail context creation [here](https://source.chromium.org/chromium/chromium/src/+/main:ui/gl/gl_context_egl.cc;drc=0177114415e98506c6628baeee472cd2f0be6c34;l=100).

Essentially this code goes to EGL subsystem and asks what what configs it supports matching what we need, kinda very wonky API.

And we ask for any config that has at least 8 bits in each channel (unless we want 565) AND renderable type is ES3 / ES2 (AND surface type is whatever we need). If we filter configs that require ES3, ES2 driver will find none.

Colin Blundell

Ah, thanks! I had misinterpreted [this](https://chromium-review.googlesource.com/c/chromium/src/+/6994174/5/ui/gl/gl_surface_egl.cc): I thought that we needed to request ES2 here *only because* we didn't always request ES3.

So we'll be able to remove this line and [this code](https://source.chromium.org/chromium/chromium/src/+/main:ui/gl/gl_context_egl.cc;l=112-119;drc=0177114415e98506c6628baeee472cd2f0be6c34;bpv=1) only when we no longer actually support ES2 (if we want we could scope it down platform by platform as we remove ES2 support on that platform)?

Open in Gerrit

Related details

Attention is currently required from:
  • Vasiliy Telezhnikov
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5dc206fb5315d20b82daf8719b5f664af4522b8c
Gerrit-Change-Number: 7003394
Gerrit-PatchSet: 1
Gerrit-Owner: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
Gerrit-Attention: Vasiliy Telezhnikov <vas...@chromium.org>
Gerrit-Comment-Date: Mon, 06 Oct 2025 07:47:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Vasiliy Telezhnikov <vas...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Vasiliy Telezhnikov (Gerrit)

unread,
Oct 6, 2025, 9:38:03 AM (yesterday) Oct 6
to Colin Blundell, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org
Attention needed from Colin Blundell

Vasiliy Telezhnikov added 1 comment

File ui/gl/gl_surface_egl.cc
Line 145, Patchset 1 (Parent): renderable_types.push_back(EGL_OPENGL_ES2_BIT);
Vasiliy Telezhnikov . unresolved

Removing this will fail this function on devices that can't support ES3 and then it will fail context creation [here](https://source.chromium.org/chromium/chromium/src/+/main:ui/gl/gl_context_egl.cc;drc=0177114415e98506c6628baeee472cd2f0be6c34;l=100).

Essentially this code goes to EGL subsystem and asks what what configs it supports matching what we need, kinda very wonky API.

And we ask for any config that has at least 8 bits in each channel (unless we want 565) AND renderable type is ES3 / ES2 (AND surface type is whatever we need). If we filter configs that require ES3, ES2 driver will find none.

Colin Blundell

Ah, thanks! I had misinterpreted [this](https://chromium-review.googlesource.com/c/chromium/src/+/6994174/5/ui/gl/gl_surface_egl.cc): I thought that we needed to request ES2 here *only because* we didn't always request ES3.

So we'll be able to remove this line and [this code](https://source.chromium.org/chromium/chromium/src/+/main:ui/gl/gl_context_egl.cc;l=112-119;drc=0177114415e98506c6628baeee472cd2f0be6c34;bpv=1) only when we no longer actually support ES2 (if we want we could scope it down platform by platform as we remove ES2 support on that platform)?

Vasiliy Telezhnikov

Right! In theory it's probably possible to remove code checking for ES3 renderable and rely on fallback below in that function, but it probably isn't worth it.

Open in Gerrit

Related details

Attention is currently required from:
  • Colin Blundell
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5dc206fb5315d20b82daf8719b5f664af4522b8c
Gerrit-Change-Number: 7003394
Gerrit-PatchSet: 1
Gerrit-Owner: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
Gerrit-Attention: Colin Blundell <blun...@chromium.org>
Gerrit-Comment-Date: Mon, 06 Oct 2025 13:37:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Colin Blundell <blun...@chromium.org>
Comment-In-Reply-To: Vasiliy Telezhnikov <vas...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Colin Blundell (Gerrit)

unread,
Oct 6, 2025, 10:28:18 AM (yesterday) Oct 6
to Colin Blundell, Vasiliy Telezhnikov, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org

Colin Blundell abandoned this change

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: abandon
satisfied_requirement
unsatisfied_requirement
open
diffy

Colin Blundell (Gerrit)

unread,
Oct 6, 2025, 10:28:27 AM (yesterday) Oct 6
to Colin Blundell, Vasiliy Telezhnikov, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org
Attention needed from Vasiliy Telezhnikov

Colin Blundell added 1 comment

File ui/gl/gl_surface_egl.cc
Line 145, Patchset 1 (Parent): renderable_types.push_back(EGL_OPENGL_ES2_BIT);
Vasiliy Telezhnikov . unresolved

Removing this will fail this function on devices that can't support ES3 and then it will fail context creation [here](https://source.chromium.org/chromium/chromium/src/+/main:ui/gl/gl_context_egl.cc;drc=0177114415e98506c6628baeee472cd2f0be6c34;l=100).

Essentially this code goes to EGL subsystem and asks what what configs it supports matching what we need, kinda very wonky API.

And we ask for any config that has at least 8 bits in each channel (unless we want 565) AND renderable type is ES3 / ES2 (AND surface type is whatever we need). If we filter configs that require ES3, ES2 driver will find none.

Colin Blundell

Ah, thanks! I had misinterpreted [this](https://chromium-review.googlesource.com/c/chromium/src/+/6994174/5/ui/gl/gl_surface_egl.cc): I thought that we needed to request ES2 here *only because* we didn't always request ES3.

So we'll be able to remove this line and [this code](https://source.chromium.org/chromium/chromium/src/+/main:ui/gl/gl_context_egl.cc;l=112-119;drc=0177114415e98506c6628baeee472cd2f0be6c34;bpv=1) only when we no longer actually support ES2 (if we want we could scope it down platform by platform as we remove ES2 support on that platform)?

Vasiliy Telezhnikov

Right! In theory it's probably possible to remove code checking for ES3 renderable and rely on fallback below in that function, but it probably isn't worth it.

Colin Blundell

Thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Vasiliy Telezhnikov
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5dc206fb5315d20b82daf8719b5f664af4522b8c
Gerrit-Change-Number: 7003394
Gerrit-PatchSet: 1
Gerrit-Owner: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
Gerrit-Attention: Vasiliy Telezhnikov <vas...@chromium.org>
Gerrit-Comment-Date: Mon, 06 Oct 2025 14:28:00 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages