| Index: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
|
| index 77049c59825abe6c706a63a4bbe3ae01af7ed6c3..c7ec58fe993def334b6045c06ca9f999fdda29af 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
|
| @@ -2610,10 +2610,14 @@ error::Error GLES2DecoderPassthroughImpl::DoBindUniformLocationCHROMIUM(
|
|
|
| error::Error GLES2DecoderPassthroughImpl::DoBindTexImage2DCHROMIUM(
|
| GLenum target,
|
| - GLint imageId) {
|
| + GLint imageId,
|
| + GLint fenceId) {
|
| // TODO(geofflang): error handling
|
| gl::GLImage* image = image_manager_->LookupImage(imageId);
|
| - if (!image->BindTexImage(target)) {
|
| + gl::GLFence* fence = nullptr;
|
| + if (fenceId)
|
| + fence = fence_manager_->LookupFence(fenceId);
|
| + if (!image->BindTexImage(target, fence)) {
|
| image->CopyTexImage(target);
|
| }
|
| return error::kNoError;
|
|
|