Cherry-pick: [Android WebView] Turn on accelerated canvas based on View.isHardwareAccelerated
Clean cherry-pick of crrev.com/r245648
In onAttachedToWindow, check that if the view is hardware accelerated,
then enable hardware accelerated 2d canvas. Similarly disable canvas on
Note that accelerated 2d canvas is still off by default, but this patch
adds a command line switch to turn it on.
7 files changed