Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to check chrome chrome://flags/ values using javascript?

i want to check if a [Disable accelerated 2D canvas] chrome://flags/ was set to Disable or Enabled using java script on page load. is there any way ?

like image 662
Lijo Avatar asked Nov 21 '12 07:11

Lijo


People also ask

Can chrome read JavaScript?

Like other internet browsers, Google Chrome supports JavaScript, which is activated to display certain functions or interactive elements like ad banners on Java-based websites.

Where are chrome flags settings stored?

They are stored in the Browser block of the the plain-text file Local State , which is located in the User Data directory.

Does Google Chrome block JavaScript?

Disable and Enable JavaScript in Chrome's Settings Towards the bottom of the drop-down menu that appears, select “Settings”. Find the “Privacy and Security” section and select “Site Settings”. Finally, click “JavaScript” in the “Permissions” group. By default, JavaScript is enabled.


1 Answers

Well, try to answer the question behind: Is user's canvas hardware accelerated?

With a GPU canvas there is virtually no difference in time between a drawImage() onto a rotated and a non rotated context. Comparing same operations with a canvas running on CPU yields big differences.

like image 199
Torsten Becker Avatar answered Nov 06 '22 10:11

Torsten Becker