During image destroy, delete textures only if we have a GL context.

This adds Destroy function for ImageManager and invoke it from
command decoder destroy path with GL context info.
This is to ensure that when we destroy the image, 
textures to which the image is bound to, 
is deleted only if we have a GL context.

BUG=375507

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286811 0039d316-1c4b-4281-b951-d872f2087c98
28 files changed