cef icon indicating copy to clipboard operation
cef copied to clipboard

osr: win: Image not redrawing/resizing after navigation

Open amaitland opened this issue 1 year ago • 5 comments

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):

  • OS: Windows 11
  • CEF Version: 130.1.9+gfc42567+chromium-130.0.6723.70

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

amaitland avatar Oct 30 '24 08:10 amaitland

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

magreenblatt avatar Nov 04 '24 14:11 magreenblatt

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 avatar Nov 08 '24 02:11 amaitland

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

amaitland avatar Nov 09 '24 00:11 amaitland

Thanks for the update.

magreenblatt avatar Nov 13 '24 22:11 magreenblatt

I am observing the same on both macOS and Windows. It started after update from 126 to 127

Could not reproduce in cefclient

UPT: The workaround is to start at the beginning of the resize a loop that callsinvalidate() repeatedly until the onPaint delivers the image of the expected size.

ujpv avatar Aug 15 '25 09:08 ujpv