Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amaitland opened this issue Oct 30, 2024 · 4 comments
Open

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

amaitland opened this issue Oct 30, 2024 · 4 comments
Labels
bug Bug report osr Related to off-screen rendering windows Windows platform

Comments

@amaitland
Copy link
Contributor

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

@magreenblatt
Copy link
Collaborator

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

@magreenblatt magreenblatt added windows Windows platform osr Related to off-screen rendering labels Nov 4, 2024
@amaitland
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Collaborator

Thanks for the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report osr Related to off-screen rendering windows Windows platform
Projects
None yet
Development

No branches or pull requests

2 participants