• reveman@chromium.org's avatar
    Cherry-pick: gpu: Add Will/DidUseTexImage to GLImage API. · 294545aa
    reveman@chromium.org authored
    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
    294545aa
texture_manager.cc 38.3 KB