Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Screenshot and hardware acceleration.

Post Reply
User avatar
salvadordf
Posts: 4042
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Screenshot and hardware acceleration.

Post by salvadordf »

Hi,

Thanks for reporting this issue!

Right now I'm busy but I'll take a look at this issue as soon as I can.
User avatar
salvadordf
Posts: 4042
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Screenshot and hardware acceleration.

Post by salvadordf »

Chromium seems to be using ANGLE when you enable GPU acceleration :
https://en.wikipedia.org/wiki/ANGLE_(software)

Apparently, Google announced intent to implement the future WebGPU standard :
https://en.wikipedia.org/wiki/WebGPU

Taking a screenshot of a DirectX application seems to be rather complicated according to all the information I found and it requires hooking some DirectX API functions to access the raw image :
https://stackoverflow.com/questions/196 ... pplication

I'm sorry but I don't have the required DirectX knowledge to implement that feature. :oops:

I can only suggest you to disable the hardware acceleration or to use a browser in OSR mode to take screenshots.
Student
Posts: 72
Joined: Tue Aug 07, 2018 9:20 am

Re: Screenshot and hardware acceleration.

Post by Student »

Can be without hook, just add

Code: Select all

globalcefapp.AddCustomCommandLine('--disable-direct-composition');
User avatar
salvadordf
Posts: 4042
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Screenshot and hardware acceleration.

Post by salvadordf »

All the information about the command switches is here :
https://peter.sh/experiments/chromium-c ... -switches/
Post Reply