| Index: gpu/command_buffer/client/gles2_implementation.cc
|
| diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
|
| index 53bd25f1879cdd23496be86705d473f65a0c8926..b46d49dd64185616479d899b2d9ddf1ab2faba38 100644
|
| --- a/gpu/command_buffer/client/gles2_implementation.cc
|
| +++ b/gpu/command_buffer/client/gles2_implementation.cc
|
| @@ -3596,6 +3596,19 @@ void GLES2Implementation::ProduceTextureCHROMIUM(GLenum target,
|
| CheckGLError();
|
| }
|
|
|
| +void GLES2Implementation::ProduceTextureBindlessCHROMIUM(
|
| + GLuint texture, GLenum target, const GLbyte* data) {
|
| + GPU_CLIENT_SINGLE_THREAD_CHECK();
|
| + GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glProduceTextureBindlessCHROMIUM("
|
| + << static_cast<const void*>(data) << ")");
|
| + const Mailbox& mailbox = *reinterpret_cast<const Mailbox*>(data);
|
| + DCHECK(mailbox.Verify()) << "ProduceTextureBindlessCHROMIUM was passed a "
|
| + "mailbox that was not generated by "
|
| + "GenMailboxCHROMIUM.";
|
| + helper_->ProduceTextureBindlessCHROMIUMImmediate(texture, target, data);
|
| + CheckGLError();
|
| +}
|
| +
|
| void GLES2Implementation::ConsumeTextureCHROMIUM(GLenum target,
|
| const GLbyte* data) {
|
| GPU_CLIENT_SINGLE_THREAD_CHECK();
|
| @@ -3609,6 +3622,23 @@ void GLES2Implementation::ConsumeTextureCHROMIUM(GLenum target,
|
| CheckGLError();
|
| }
|
|
|
| +GLuint GLES2Implementation::CreateAndConsumeTextureCHROMIUM(
|
| + GLenum target, const GLbyte* data) {
|
| + GPU_CLIENT_SINGLE_THREAD_CHECK();
|
| + GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glCreateAndConsumeTextureCHROMIUM("
|
| + << static_cast<const void*>(data) << ")");
|
| + const Mailbox& mailbox = *reinterpret_cast<const Mailbox*>(data);
|
| + DCHECK(mailbox.Verify()) << "CreateAndConsumeTextureCHROMIUM was passed a "
|
| + "mailbox that was not generated by "
|
| + "GenMailboxCHROMIUM.";
|
| + GLuint client_id;
|
| + GetIdHandler(id_namespaces::kTextures)->MakeIds(this, 0, 1, &client_id);
|
| + helper_->CreateAndConsumeTextureCHROMIUMImmediate(target,
|
| + client_id, data);
|
| + CheckGLError();
|
| + return client_id;
|
| +}
|
| +
|
| void GLES2Implementation::PushGroupMarkerEXT(
|
| GLsizei length, const GLchar* marker) {
|
| GPU_CLIENT_SINGLE_THREAD_CHECK();
|
|
|