OnPaint buffer looses transparency with disable-gpu switch

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.

OnPaint buffer looses transparency with disable-gpu switch

Postby DamianKrawczyk » Wed Jun 24, 2020 7:38 am

I'm having issues getting alpha transparency in OnPaint handler after enabling --disable-gpu switch.
I'm using cefsimple from cef_binary_83.3.12+g0889ff0+chromium-83.0.4103.97.

When I have gpu enabled I can see correct value for BGRA pixel buffer in OnPaint handler -> 0x00000000
When I'll add --disable-gpu switch BGRA buffer contains white pixels -> 0xffffffff

CefSettings:
Code: Select all
CefSettings settings;
settings.no_sandbox = true;
settings.windowless_rendering_enabled = true;


CefWindowInfo:
Code: Select all
CefWindowInfo window_info;
window_info.width = width;
window_info.height = height;
window_info.SetAsWindowless(0);


Switches:
Code: Select all
--disable-gpu --disable-gpu-compositing --disable-gpu-vsync
DamianKrawczyk
Newbie
 
Posts: 1
Joined: Wed Jun 24, 2020 7:05 am

Re: OnPaint buffer looses transparency with disable-gpu swit

Postby magreenblatt » Wed Jun 24, 2020 9:49 am

magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 46 guests