| Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
|
| diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
|
| index 562f365401704d987cb1dee3f7aa6fb5fef2db83..0f2fcb129737dcd41a1469805c3ce752b11e7b4b 100644
|
| --- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
|
| +++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
|
| @@ -1602,8 +1602,21 @@ DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivEXT, WGC3Denum, WGC3Denum, WGC3Dint*)
|
| DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivEXT,
|
| WebGLId, WGC3Denum, WGC3Duint*)
|
|
|
| -DELEGATE_TO_GL_5(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum,
|
| - WebGLId, WebGLId, WGC3Dint, WGC3Denum);
|
| +DELEGATE_TO_GL_6(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum,
|
| + WebGLId, WebGLId, WGC3Dint, WGC3Denum, WGC3Denum);
|
| +
|
| +// This copyTextureCHROMIUM(...) has five parameters and delegates the call to
|
| +// CopyTextureCHROMIUM(...) with the sixth parameter set to GL_UNSIGNED_BYTE
|
| +// to bridge the parameter differences.
|
| +// TODO(jun.a.jiang@intel.com): once all clients switch to call
|
| +// the newer copyTextureCHROMIUM(...) with six parameters, this
|
| +// function will be removed.
|
| +void WebGraphicsContext3DCommandBufferImpl::copyTextureCHROMIUM(
|
| + WGC3Denum target, WebGLId source_id, WebGLId dest_id, WGC3Dint level,
|
| + WGC3Denum internal_format) {
|
| + gl_->CopyTextureCHROMIUM(target, source_id, dest_id, level, internal_format,
|
| + GL_UNSIGNED_BYTE);
|
| +}
|
|
|
| DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM,
|
| WebGLId, WGC3Dint, const WGC3Dchar*)
|
|
|