Add app.disableHardwareAcceleration() API

This commit is contained in:
Cheng Zhao 2016-06-06 20:19:55 +09:00
parent 3e809901e0
commit 02cfe30df9
3 changed files with 19 additions and 2 deletions

View file

@ -561,6 +561,12 @@ Imports the certificate in pkcs12 format into the platform certificate store.
`callback` is called with the `result` of import operation, a value of `0`
indicates success while any other value indicates failure according to chromium [net_error_list](https://code.google.com/p/chromium/codesearch#chromium/src/net/base/net_error_list.h).
### `app.disableHardwareAcceleration()`
Disables hardware acceleration for current app.
This method can only be called before app is ready.
### `app.commandLine.appendSwitch(switch[, value])`
Append a switch (with optional `value`) to Chromium's command line.