branch 2357: Handle currently bound texture id in PowerVR workaround
branch 2357: Handle currently bound texture id in PowerVR workaround

If the texture id being deleted is currently bound to target, make sure
the new texture is bound to target. ScopedTextureBinder will then do the
right thing and restore the new texture id as bound on destruction.

BUG=480992

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

Cr-Commit-Position: refs/heads/master@{#327614}
(cherry picked from commit cbaf2c4519a53edee3db309434eee9d4161fe11d)
TBR=boliu@chromium.org

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

Cr-Commit-Position: fe94940391158563b8e4cf7888f93321f554af93@{#281}
Cr-Branched-From: 9fdd9ec11ee753dedeffe15e7e822b13445dc287@{#323860}

fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk