DrDC: Opt out of the display level share groups. [chromium/src : main]

3 views
Skip to first unread message

Geoff Lang (Gerrit)

unread,
Dec 2, 2021, 5:19:24 PM12/2/21
to Sunny Sachanandani, ozone-...@chromium.org, vikas soni

Attention is currently required from: Sunny Sachanandani.

Geoff Lang would like Sunny Sachanandani to review this change.

View Change

DrDC: Opt out of the display level share groups.

DrDC shares textures between contexts using other mechanisms
(AHardwareBuffer). Leaving DrDC contexts in the global texture share
group causes potential threading errors.

Bug: chromium:1268830, chromium:1268389
Change-Id: I89f15bc13886b7d92f28ce2e081ae6b829d490ce
---
M ui/gl/gl_context_egl.cc
1 file changed, 23 insertions(+), 2 deletions(-)

diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc
index 480af29..5a1795d 100644
--- a/ui/gl/gl_context_egl.cc
+++ b/ui/gl/gl_context_egl.cc
@@ -210,7 +210,12 @@
}
}

- if (GLSurfaceEGL::IsDisplayTextureShareGroupSupported()) {
+ // Opt into a display-level texture share group if it is supported and this
+ // context is going to be used on the main GPU thread. DrDC does not require
+ // sharing textures with other contexts through this mechanism.
+ if (GLSurfaceEGL::IsDisplayTextureShareGroupSupported() &&
+ attribs.angle_context_virtualization_group_number ==
+ AngleContextVirtualizationGroup::kDefault) {
context_attributes.push_back(EGL_DISPLAY_TEXTURE_SHARE_GROUP_ANGLE);
context_attributes.push_back(
attribs.global_texture_share_group ? EGL_TRUE : EGL_FALSE);
@@ -218,7 +223,9 @@
DCHECK(!attribs.global_texture_share_group);
}

- if (GLSurfaceEGL::IsDisplaySemaphoreShareGroupSupported()) {
+ if (GLSurfaceEGL::IsDisplaySemaphoreShareGroupSupported() &&
+ attribs.angle_context_virtualization_group_number ==
+ AngleContextVirtualizationGroup::kDefault) {
context_attributes.push_back(EGL_DISPLAY_SEMAPHORE_SHARE_GROUP_ANGLE);
context_attributes.push_back(
attribs.global_semaphore_share_group ? EGL_TRUE : EGL_FALSE);

To view, visit change 3313716. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I89f15bc13886b7d92f28ce2e081ae6b829d490ce
Gerrit-Change-Number: 3313716
Gerrit-PatchSet: 1
Gerrit-Owner: Geoff Lang <geof...@chromium.org>
Gerrit-Reviewer: Geoff Lang <geof...@chromium.org>
Gerrit-Reviewer: Sunny Sachanandani <sun...@chromium.org>
Gerrit-CC: vikas soni <vika...@chromium.org>
Gerrit-Attention: Sunny Sachanandani <sun...@chromium.org>
Gerrit-MessageType: newchange

Geoff Lang (Gerrit)

unread,
Dec 2, 2021, 5:19:30 PM12/2/21
to ozone-...@chromium.org, Sunny Sachanandani, vikas soni, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Sunny Sachanandani.

View Change

1 comment:

  • Patchset:

    • Patch Set #1:

      Sunny: PTAL.

      Vikas is still doing some manual verification.

To view, visit change 3313716. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I89f15bc13886b7d92f28ce2e081ae6b829d490ce
Gerrit-Change-Number: 3313716
Gerrit-PatchSet: 1
Gerrit-Owner: Geoff Lang <geof...@chromium.org>
Gerrit-Reviewer: Geoff Lang <geof...@chromium.org>
Gerrit-Reviewer: Sunny Sachanandani <sun...@chromium.org>
Gerrit-CC: vikas soni <vika...@chromium.org>
Gerrit-Attention: Sunny Sachanandani <sun...@chromium.org>
Gerrit-Comment-Date: Thu, 02 Dec 2021 22:19:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Sunny Sachanandani (Gerrit)

unread,
Dec 2, 2021, 5:35:34 PM12/2/21
to Geoff Lang, ozone-...@chromium.org, vikas soni, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Geoff Lang.

Patch set 1:Code-Review +1

View Change

1 comment:

To view, visit change 3313716. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I89f15bc13886b7d92f28ce2e081ae6b829d490ce
Gerrit-Change-Number: 3313716
Gerrit-PatchSet: 1
Gerrit-Owner: Geoff Lang <geof...@chromium.org>
Gerrit-Reviewer: Geoff Lang <geof...@chromium.org>
Gerrit-Reviewer: Sunny Sachanandani <sun...@chromium.org>
Gerrit-CC: vikas soni <vika...@chromium.org>
Gerrit-Attention: Geoff Lang <geof...@chromium.org>
Gerrit-Comment-Date: Thu, 02 Dec 2021 22:35:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

vikas soni (Gerrit)

unread,
Dec 2, 2021, 5:42:27 PM12/2/21
to Geoff Lang, ozone-...@chromium.org, Sunny Sachanandani, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Geoff Lang.

View Change

2 comments:


    • AngleContextVirtualizationGroup::kDefault) {
      context_attributes.push_back(EGL_DISPLAY_TEXTURE_SHARE_GROUP_ANGLE);
      context_attributes.push_back(
      attribs.global_texture_share_group ? EGL_TRUE : EGL_FALSE);
      }
    •   } else {
      DCHECK(!attribs.global_texture_share_group);
      }
    • Patch Set #1, Line 233: DCHECK(!attribs.global_semaphore_share_group);

      needs same fix as above

To view, visit change 3313716. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I89f15bc13886b7d92f28ce2e081ae6b829d490ce
Gerrit-Change-Number: 3313716
Gerrit-PatchSet: 1
Gerrit-Owner: Geoff Lang <geof...@chromium.org>
Gerrit-Reviewer: Geoff Lang <geof...@chromium.org>
Gerrit-Reviewer: Sunny Sachanandani <sun...@chromium.org>
Gerrit-CC: vikas soni <vika...@chromium.org>
Gerrit-Attention: Geoff Lang <geof...@chromium.org>
Gerrit-Comment-Date: Thu, 02 Dec 2021 22:42:16 +0000

Geoff Lang (Gerrit)

unread,
Apr 16, 2026, 4:29:37 PM (13 days ago) Apr 16
to vikas soni, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org

Geoff Lang abandoned this change.

View Change

Abandoned

Geoff Lang abandoned this change

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I89f15bc13886b7d92f28ce2e081ae6b829d490ce
Gerrit-Change-Number: 3313716
Gerrit-PatchSet: 2
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages