Cherry-pick: gpu: Add Will/DidUseTexImage to GLImage API.
Cherry-pick of Chromium crrev.com/r230093
WillUseTexImage/DidUseTexImage is called before/after the image is
used for sampling. The result is that the client only has to call
bind/releaseTexImage2D when contents have changed, which allows
for more efficient GLImage implementations as work required before
use can be separated from work required when contents have changed.
20 files changed