Besides whatever that determines whether it is software rendering or not, it should also query whether --disable-gpu-compositing flag is passed in or not, if this flag is passed in, then isSoftwareRendering() should return true.
Summary: Plumb --disable-gpu-compositing to Blink (was: WebGraphicsContext3DProvider::isSoftwareRendering() should query --disable-gpu-compositing flag)
As pointed out by jbauman@, doing this will result in creating un-necessary gpu process when we just need to query --disable-gpu-compositing flag, which could be quite inefficient.
So changing this to be "Plumb --disable-gpu-compositing to Blink"
Makes sense. For webgl it will have a context already so it wouldn't be relevant I guess. But for canvas if it was 2d it would not have a context, and just wants to know if it needs to upload to a texture or not. If not, no need for a context/gpu process.
Comment 1 by xidac...@chromium.org
, Sep 27 2016