Page 1 of 1

pixels from OnPaint() calls not updating in rev 2987

PostPosted: Wed Apr 05, 2017 12:32 pm
by simonpearce
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.

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

PostPosted: Wed Apr 05, 2017 12:50 pm
by Czarek
See the flags cefclient sets in OSR mode:
https://bitbucket.org/chromiumembedded/ ... wser.cc-18

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

PostPosted: Wed Apr 05, 2017 1:31 pm
by simonpearce
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.