| Index: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
|
| diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
|
| index 689ee348b5796253388b584c2365821f6a665df3..9cabac9294db89fc258c9da6aafd8c902e14cd52 100644
|
| --- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
|
| +++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
|
| @@ -1651,8 +1651,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, WGC3Duint,
|
| - WGC3Duint, WGC3Dint, WGC3Denum)
|
| +DELEGATE_TO_GL_6(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum, WGC3Duint,
|
| + WGC3Duint, 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 WebGraphicsContext3DInProcessCommandBufferImpl::copyTextureCHROMIUM(
|
| + WGC3Denum target, WGC3Duint source_id, WGC3Duint dest_id, WGC3Dint level,
|
| + WGC3Denum internal_format) {
|
| + ClearContext();
|
| + gl_->CopyTextureCHROMIUM(target, source_id, dest_id, level, internal_format,
|
| + GL_UNSIGNED_BYTE);
|
| +}
|
|
|
| void WebGraphicsContext3DInProcessCommandBufferImpl::insertEventMarkerEXT(
|
| const WGC3Dchar* marker) {
|
|
|