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 "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" | 5 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" |
6 | 6 |
7 #include <GLES2/gl2.h> | 7 #include <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 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1617 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryEXT, WebGLId, WGC3Dboolean) | 1617 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryEXT, WebGLId, WGC3Dboolean) |
1618 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryEXT, WGC3Denum, WebGLId) | 1618 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryEXT, WGC3Denum, WebGLId) |
1619 DELEGATE_TO_GL_1(endQueryEXT, EndQueryEXT, WGC3Denum) | 1619 DELEGATE_TO_GL_1(endQueryEXT, EndQueryEXT, WGC3Denum) |
1620 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivEXT, WGC3Denum, WGC3Denum, WGC3Dint*) | 1620 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivEXT, WGC3Denum, WGC3Denum, WGC3Dint*) |
1621 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivEXT, | 1621 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivEXT, |
1622 WebGLId, WGC3Denum, WGC3Duint*) | 1622 WebGLId, WGC3Denum, WGC3Duint*) |
1623 | 1623 |
1624 DELEGATE_TO_GL_5(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum, WGC3Duint, | 1624 DELEGATE_TO_GL_5(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum, WGC3Duint, |
1625 WGC3Duint, WGC3Dint, WGC3Denum) | 1625 WGC3Duint, WGC3Dint, WGC3Denum) |
1626 | 1626 |
| 1627 DELEGATE_TO_GL_2(texImagePixmap2DCHROMIUM, TexImagePixmap2DCHROMIUM, |
| 1628 WGC3Denum, WGC3Duint) |
| 1629 |
1627 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl:: | 1630 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl:: |
1628 onCreateGrGLInterface() { | 1631 onCreateGrGLInterface() { |
1629 return webkit_glue::CreateCommandBufferSkiaGLBinding(); | 1632 return webkit_glue::CreateCommandBufferSkiaGLBinding(); |
1630 } | 1633 } |
1631 | 1634 |
1632 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() { | 1635 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() { |
1633 // TODO(kbr): improve the precision here. | 1636 // TODO(kbr): improve the precision here. |
1634 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; | 1637 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; |
1635 if (context_lost_callback_) { | 1638 if (context_lost_callback_) { |
1636 context_lost_callback_->onContextLost(); | 1639 context_lost_callback_->onContextLost(); |
1637 } | 1640 } |
1638 } | 1641 } |
1639 | 1642 |
1640 DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM, | 1643 DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM, |
1641 WebGLId, WGC3Dint, const WGC3Dchar*) | 1644 WebGLId, WGC3Dint, const WGC3Dchar*) |
1642 | 1645 |
1643 } // namespace gpu | 1646 } // namespace gpu |
1644 } // namespace webkit | 1647 } // namespace webkit |
OLD | NEW |