PDF does not render correctly with OSR and Surfaces Disabled

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

PDF does not render correctly with OSR and Surfaces Disabled

Postby amaitland » Sun Sep 18, 2016 9:56 pm

Testing with cef_binary_3.2785.1480.g162e9a9_windows32_client the PDF viewer is not working with OSR rendering and GPU Acceleration Enabled.

Same behavior as demonstrated in https://bitbucket.org/chromiumembedded/cef/issues/1689 (resize to get the PDF to draw).

1. Run cefclient.exe --multi-threaded-message-loop --off-screen-rendering-enabled --enable-gpu --disable-surfaces
2. Load a PDF example like http://tests/pdf

Disable GPU acceleration and the problem PDF renders correctly. Previous it was enough to just Disable Surfaces.

I've only tested on Windows. Can someone else confirm they're seeing a problem?
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: PDF does not render correctly with OSR and Surfaces Disa

Postby magreenblatt » Sun Sep 18, 2016 10:07 pm

Disable-surfaces support has been removed in Chromium. The fix will be tracked by https://bitbucket.org/chromiumembedded/ ... -correctly. A temporary workaround is to call Invalidate() on a timer.
magreenblatt
Site Admin
 
Posts: 12402
Joined: Fri May 29, 2009 6:57 pm

Re: PDF does not render correctly with OSR and Surfaces Disa

Postby amaitland » Sun Sep 18, 2016 10:30 pm

Thanks for the prompt reply! Any guidance for calling Invalidate? Times per second? Only when PDF is showing?
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: PDF does not render correctly with OSR and Surfaces Disa

Postby magreenblatt » Sun Sep 18, 2016 10:49 pm

20 to 30 fps is probably fine. It's only necessary when a PDF is showing.
magreenblatt
Site Admin
 
Posts: 12402
Joined: Fri May 29, 2009 6:57 pm

Re: PDF does not render correctly with OSR and Surfaces Disa

Postby amaitland » Sun Sep 18, 2016 10:53 pm

magreenblatt wrote:20 to 30 fps is probably fine. It's only necessary when a PDF is showing.


Thanks, I'll give it a test at some point and see how it goes.

I added some additional formation at https://bitbucket.org/chromiumembedded/ ... t-30699066 feel free to add/edit/delete as you see fit.

Thanks again for the quick reply.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 30 guests