Cherry-pick: gpu: Add Will/DidUseTexImage to GLImage API.
Cherry-pick of Chromium crrev.com/r230093
BUG: 11392857
Conflicts:
cc/resources/resource_provider.cc
gpu/command_buffer/service/gles2_cmd_decoder.cc
ui/gl/gl_image_egl.cc
Original description:
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.
Change-Id: I3bfa9cdd894fcdd60b7d10ff70afde349cfdd476
20 files changed