0
Files
src/gpu/command_buffer
Sahir Vellani 501a302fb1 Revert "[Win] Set the gl surface handle to a Child Window when not using DComp"
This reverts commit 02222b9ee2.

Reason for revert: Breaks enterprise screenshot prevention
functionality. SetWindowDisplayAffinity incorrectly returns an OOM error
when the top level window contains a layered child. This ends up
breaking screenshot prevention controls set up by Chromium.
Unfortunately, there is no workaround until the bug can be fixed in
Windows. Therefore, prevent layered windows from being the rendering
surface altogether.

Bug: 400454999 Original change's description:
> [Win] Set the gl surface handle to a Child Window when not using DComp
>
> If the Redirection bitmap is removed from the main window, ANGLE can't
> render content when not using DComp. The reason being that ANGLE
> EGLSurface swap chains use a bitBlit approach. The solution to this
> problem is to supply a child hwnd with a Redirection bitmap.
>
> Bug: 400454999
> Change-Id: Ib113d37696cef0355ba45c200d94e5c26e72874d
> Skip-Clang-Tidy-Checks: modernize-use-nullptr
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6426631
> Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.com>
> Commit-Queue: Sahir Vellani <sahir.vellani@microsoft.com>
> Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1449042}

Bug: 400454999
Change-Id: I3f36e0b2cc534af7bb791638b23bdb854a4272f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6558308
Commit-Queue: Sahir Vellani <sahir.vellani@microsoft.com>
Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1462324}
2025-05-19 11:00:10 -07:00
..