MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
441 stars 52 forks source link

Support opaque webview #3071

Open xiaopengli89 opened 1 year ago

xiaopengli89 commented 1 year ago

Is your feature request related to a problem? Please describe.

Currently we can use the ICoreWebView2CompositionController interface for visual hosting, but it seems like WebView2 always work on alpha blending mode, even I call SetDefaultBackgroundColor using alpha value 255 and enter full screen mode, dwm.exe cause high gpu usage.

In contrast, Chrome uses F11 to enter full screen mode, and dwm.exe has almost no gpu usage.

Describe the solution you'd like and alternatives you've considered

APIs like SetOpaque are worth considering.

AB#42649213

nishitha-burman commented 1 year ago

Thank you for the feedback, we have added this to our backlog!