| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 5 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| 6 | 6 |
| 7 #include "third_party/khronos/GLES2/gl2.h" | 7 #include "third_party/khronos/GLES2/gl2.h" |
| 8 #ifndef GL_GLEXT_PROTOTYPES | 8 #ifndef GL_GLEXT_PROTOTYPES |
| 9 #define GL_GLEXT_PROTOTYPES 1 | 9 #define GL_GLEXT_PROTOTYPES 1 |
| 10 #endif | 10 #endif |
| (...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1595 gl_->DeleteQueriesEXT(1, &query); | 1595 gl_->DeleteQueriesEXT(1, &query); |
| 1596 } | 1596 } |
| 1597 | 1597 |
| 1598 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryEXT, WebGLId, WGC3Dboolean) | 1598 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryEXT, WebGLId, WGC3Dboolean) |
| 1599 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryEXT, WGC3Denum, WebGLId) | 1599 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryEXT, WGC3Denum, WebGLId) |
| 1600 DELEGATE_TO_GL_1(endQueryEXT, EndQueryEXT, WGC3Denum) | 1600 DELEGATE_TO_GL_1(endQueryEXT, EndQueryEXT, WGC3Denum) |
| 1601 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivEXT, WGC3Denum, WGC3Denum, WGC3Dint*) | 1601 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivEXT, WGC3Denum, WGC3Denum, WGC3Dint*) |
| 1602 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivEXT, | 1602 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivEXT, |
| 1603 WebGLId, WGC3Denum, WGC3Duint*) | 1603 WebGLId, WGC3Denum, WGC3Duint*) |
| 1604 | 1604 |
| 1605 DELEGATE_TO_GL_5(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum, | 1605 DELEGATE_TO_GL_6(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum, |
| 1606 WebGLId, WebGLId, WGC3Dint, WGC3Denum); | 1606 WebGLId, WebGLId, WGC3Dint, WGC3Denum, WGC3Denum); |
| 1607 | 1607 |
| 1608 DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM, | 1608 DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM, |
| 1609 WebGLId, WGC3Dint, const WGC3Dchar*) | 1609 WebGLId, WGC3Dint, const WGC3Dchar*) |
| 1610 | 1610 |
| 1611 DELEGATE_TO_GL(shallowFlushCHROMIUM,ShallowFlushCHROMIUM); | 1611 DELEGATE_TO_GL(shallowFlushCHROMIUM,ShallowFlushCHROMIUM); |
| 1612 | 1612 |
| 1613 DELEGATE_TO_GL_1(waitSyncPoint, WaitSyncPointCHROMIUM, GLuint) | 1613 DELEGATE_TO_GL_1(waitSyncPoint, WaitSyncPointCHROMIUM, GLuint) |
| 1614 | 1614 |
| 1615 void WebGraphicsContext3DCommandBufferImpl::genMailboxCHROMIUM( | 1615 void WebGraphicsContext3DCommandBufferImpl::genMailboxCHROMIUM( |
| 1616 WGC3Dbyte* name) { | 1616 WGC3Dbyte* name) { |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1744 | 1744 |
| 1745 void WebGraphicsContext3DCommandBufferImpl::OnErrorMessage( | 1745 void WebGraphicsContext3DCommandBufferImpl::OnErrorMessage( |
| 1746 const std::string& message, int id) { | 1746 const std::string& message, int id) { |
| 1747 if (error_message_callback_) { | 1747 if (error_message_callback_) { |
| 1748 WebKit::WebString str = WebKit::WebString::fromUTF8(message.c_str()); | 1748 WebKit::WebString str = WebKit::WebString::fromUTF8(message.c_str()); |
| 1749 error_message_callback_->onErrorMessage(str, id); | 1749 error_message_callback_->onErrorMessage(str, id); |
| 1750 } | 1750 } |
| 1751 } | 1751 } |
| 1752 | 1752 |
| 1753 } // namespace content | 1753 } // namespace content |
| OLD | NEW |