-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gpu: win: Avoid unconditionally QI to IDCompositionVisual3
In crrev.com/c/4599273 we change DCLayerTree to use IDCompositionVisual3 instead of IDCompositionVisual2. Since IDCompositionDevice3 doesn't have a CreateVisual(IDCompositionVisual3**) overload, we need to call CreateVisual(IDCompositionVisual2**) and QueryInterface to IDCompositionVisual3. This should be valid as long as a IDCompositionDevice3 was used to create the visual. However, we noticed crashes on our QI call, so this change moves the cast to be optional only when the opacity property on a overlay is non-default. This will not happen until delegated compositing is enabled. (cherry picked from commit 586b0bd) Bug: 1455666 Change-Id: Ib76e40d3d8526a5936bb1dbacf58763b79db174d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4626863 Commit-Queue: Michael Tang <tangm@microsoft.com> Reviewed-by: Maggie Chen <magchen@chromium.org> Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1160933} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4633565 Reviewed-by: Daniel Yip <danielyip@google.com> Auto-Submit: Daniel Yip <danielyip@google.com> Owners-Override: Daniel Yip <danielyip@google.com> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/5845@{#15} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information
1 parent
d058b15
commit f1dc50d
Showing
2 changed files
with
31 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters