[//media] Move CopySharedImageDirectlyToGLTexture() to GLES2Interface

Part of the ongoing move of functionality out of
PaintCanvasVideoRenderer that is conceptually below the level of
//media.

Note: BindAndTexImage2D() is defined identically here [1].

[1] https://source.chromium.org/chromium/chromium/src/+/main:gpu/command_buffer/client/gles2_implementation.cc;l=139-150?q=BindAndTex&ss=chromium

Bug: 343011436
Change-Id: I5dbd0c5b61281d275b0acb4af5c7e530d336ec06
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7673018
Reviewed-by: Saifuddin Hitawala <[email protected]>
Commit-Queue: Colin Blundell <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1601132}
NOKEYCHECK=True
GitOrigin-RevId: d65ce774ccdf22fbacdaa331b8e6a19c9f5d5bac
6 files changed