pixels from OnPaint() calls not updating in rev 2987

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

pixels from OnPaint() calls not updating in rev 2987

Postby simonpearce » Wed Apr 05, 2017 12:32 pm

CEF 3.2987.1591.gd3e47f5 Win32

I have noticed that some sites which used to work on an older version of CEF (2526 for example) now do not render correctly on rev 2987 with my OSR application.

An example is Google Maps. The initial page displays but then moving the map around triggers all the right OnPaint calls but the pixels are not updated. Most other sites including ones like You Tube work perfectly.

I have tried cefclient --off-screen-rendering-enabled and it works as expected.

I know the answer is look at the cefclient source and see what it does but it would help at lot if someone could point me at changes between 2526 and 2987 that might be causing it.
simonpearce
Techie
 
Posts: 36
Joined: Tue Oct 27, 2015 2:32 pm

Re: pixels from OnPaint() calls not updating in rev 2987

Postby Czarek » Wed Apr 05, 2017 12:50 pm

See the flags cefclient sets in OSR mode:
https://bitbucket.org/chromiumembedded/ ... wser.cc-18
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: pixels from OnPaint() calls not updating in rev 2987

Postby simonpearce » Wed Apr 05, 2017 1:31 pm

Thank you - it appears post rev 2526, I need to add

Code: Select all
command_line->AppendSwitch("disable-gpu");
command_line->AppendSwitch("disable-gpu-compositing");


to my command line. I don't understand why running cefclient.exe --off-screen-rendering-enabled --enable-gpu still lets me interact with Google Maps as normal though. That, I think removes those options above and leaves cefclient with the same ones I was using.
simonpearce
Techie
 
Posts: 36
Joined: Tue Oct 27, 2015 2:32 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 19 guests