OSR Force repaint

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.

OSR Force repaint

Postby Devyre » Tue Nov 24, 2020 10:55 pm

Hello,

I have setup hardware-accelerated OSR using shared textures.
Everything works as expected, but if I create a window and then show it a little bit later, it stays unpainted for a few seconds.

I would solve this by handling WM_SHOWWINDOW and forcing OnAcceleratedPaint, but browser->GetHost()->Invalidate(..) does not seem to work in OSR.

How do I solve this?

Thanks
Devyre
Techie
 
Posts: 27
Joined: Fri Nov 20, 2020 8:31 pm

Re: OSR Force repaint

Postby Devyre » Wed Nov 25, 2020 1:12 am

Found the issue, wasn't properly using 'browser->GetHost()->WasHidden()' and 'browser->GetHost()->SendFocusEvent()'.
Devyre
Techie
 
Posts: 27
Joined: Fri Nov 20, 2020 8:31 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 37 guests

cron