Right now GpuPrefence isn't available at GPU process launch time. It's only sent over when IPC is established.
Because of this, we have to send bits of info in GpuPreference as individual commandline switch, for example, kDisableAcceleratedVideoDecode, because they are needed before GpuPrefence is sent over.
Such duplicated mechanisms are not good for the long term - they add maintenance cost and are bug prone (changes affect one bit but forget to adjust the other representation).
Also, we should reduce the number of commandline switches sent from one process to another.
Therefore, per discussion with piman, the idea is to encode GpuPreference into one commandline switch (maybe kGpuPreference) and use commandline switch mechanism to sent GpuPreference from browser to GPU process.
Comment 1 by zmo@chromium.org
, Oct 12 2017