Chrome OS: avoid suspending on lid close when casting is active.

Treat casting (both tab casting and screen casting) the same as
external display to avoid suspending on lid close.

BUG=268615
TEST=verify that device is not suspended on lid close with casting is active.

Review URL: https://codereview.chromium.org/139053003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245659 0039d316-1c4b-4281-b951-d872f2087c98
Android: Shallow instead of deep flush after texture consume

The deep flush is not necessary anymore since we don't modify texture
state anymore and it looks like it might avoid a driver bug with
 incomplete draws.

BUG=328761
R=piman@chromium.org

Review URL: https://codereview.chromium.org/142003006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245660 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 245660