| 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 1603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1614 gl_->DeleteQueriesEXT(1, &query); | 1614 gl_->DeleteQueriesEXT(1, &query); |
| 1615 } | 1615 } |
| 1616 | 1616 |
| 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, | 1624 DELEGATE_TO_GL_5(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum, WGC3Duint, |
| 1625 WebGLId, WebGLId, WGC3Dint, WGC3Denum) | 1625 WGC3Duint, WGC3Dint, WGC3Denum) |
| 1626 | 1626 |
| 1627 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl:: | 1627 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl:: |
| 1628 onCreateGrGLInterface() { | 1628 onCreateGrGLInterface() { |
| 1629 return webkit_glue::CreateCommandBufferSkiaGLBinding(); | 1629 return webkit_glue::CreateCommandBufferSkiaGLBinding(); |
| 1630 } | 1630 } |
| 1631 | 1631 |
| 1632 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() { | 1632 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() { |
| 1633 // TODO(kbr): improve the precision here. | 1633 // TODO(kbr): improve the precision here. |
| 1634 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; | 1634 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; |
| 1635 if (context_lost_callback_) { | 1635 if (context_lost_callback_) { |
| 1636 context_lost_callback_->onContextLost(); | 1636 context_lost_callback_->onContextLost(); |
| 1637 } | 1637 } |
| 1638 } | 1638 } |
| 1639 | 1639 |
| 1640 } // namespace gpu | 1640 } // namespace gpu |
| 1641 } // namespace webkit | 1641 } // namespace webkit |
| OLD | NEW |