chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.38k stars 467 forks source link

osr: win: Image not redrawing/resizing after navigation #3822

Open amaitland opened 3 weeks ago

amaitland commented 3 weeks ago

Describe the bug When using OSR on Windows 11 the image isn't redrawn after navigating

Have to manually resize the window for the image to redraw.

To Reproduce Steps to reproduce the behavior:

  1. Launch cefclient.exe --off-screen-rendering-enabled --enable-gpu
  2. Click I'm Feeling luck on google home page
  3. Resize the window larger
  4. Navigate back
  5. Observe the previously loaded web page isn't resized to match the window

Expected behavior Image should resize to match that of the window when navigating

Screenshots

image

Versions (please complete the following information):

Additional context

Yes using cef_binary_130.1.9+gfc42567+chromium-130.0.6723.70_windows64_client

cefclient.exe --off-screen-rendering-enabled --enable-gpu

Does the problem reproduce with Google Chrome at the same version?

Appears to be OSR specific

Add any other context about the problem here.

Having lots of different rendering issues in CefSharp since upgrading to 127 when using OSR. This is the first one that I can reliably reproduce with cefclient

magreenblatt commented 2 weeks ago

This only reproduces when running with --enable-gpu? How about with --shared-texture-enabled?

amaitland commented 2 weeks ago

This only reproduces when running with --enable-gpu? How about with --shared-texture-enabled?

I'll try test on the weekend and report back

amaitland commented 1 week ago

This only reproduces when running with --enable-gpu?

No, reproduces without it.

cefclient.exe --off-screen-rendering-enabled

How about with --shared-texture-enabled?

I think fundamentally it reproduces, just a slightly different visual result. It looks like the texture is stretched to fit the size, fonts become blurry, mouse is no longer mapped to correct coordinates.

cefclient.exe --off-screen-rendering-enabled --shared-texture-enabled

Did some resizing and I can get something like this (this is fullscreen on FHD display): image

Press Reload then it redraws how I'd expect it to look. image

magreenblatt commented 1 week ago

Thanks for the update.