chromiumembedded/cef

osr: Support smooth scrolling with shared texture

Closed this issue · 2 comments

Smooth scrolling does not work in OSR rendering when using OnAcceleratedPaint.

To Reproduce
Steps to reproduce the behavior:

  • Run cefclient.exe --off-screen-rendering-enabled --shared-texture-enable
  • Scrolling without animation
  • Run cefclient.exe --use-alloy-style
  • Works fine

Videos
https://github.com/user-attachments/assets/866d681f-a97a-4145-9806-a8e002f7df86
https://github.com/user-attachments/assets/1afe5ad4-8751-4d15-b7bb-f20461076cef

Versions:

  • OS: Windows 10 х64
  • CEF Version: 131.2.7+g9a14dc9

Additional context
I’ve seen in older discussions of similar issues that smooth scrolling is disabled when using OSR to improve OnPaint performance. However, I don’t see the point of this when using OnAcceleratedPaint and shared textures.

@shabesgoi how are you scrolling? could be related to #3849

Duplicate of #3849