OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #if defined(ENABLE_GPU) | 5 #if defined(ENABLE_GPU) |
6 | 6 |
7 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" | 7 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" |
8 | 8 |
9 #include <GLES2/gl2.h> | 9 #include <GLES2/gl2.h> |
10 #ifndef GL_GLEXT_PROTOTYPES | 10 #ifndef GL_GLEXT_PROTOTYPES |
(...skipping 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1659 } | 1659 } |
1660 | 1660 |
1661 WGC3Denum WebGraphicsContext3DInProcessCommandBufferImpl:: | 1661 WGC3Denum WebGraphicsContext3DInProcessCommandBufferImpl:: |
1662 getGraphicsResetStatusARB() { | 1662 getGraphicsResetStatusARB() { |
1663 return context_lost_reason_; | 1663 return context_lost_reason_; |
1664 } | 1664 } |
1665 | 1665 |
1666 DELEGATE_TO_GL_5(texImageIOSurface2DCHROMIUM, TexImageIOSurface2DCHROMIUM, | 1666 DELEGATE_TO_GL_5(texImageIOSurface2DCHROMIUM, TexImageIOSurface2DCHROMIUM, |
1667 WGC3Denum, WGC3Dint, WGC3Dint, WGC3Duint, WGC3Duint) | 1667 WGC3Denum, WGC3Dint, WGC3Dint, WGC3Duint, WGC3Duint) |
1668 | 1668 |
| 1669 DELEGATE_TO_GL_5(texStorage2DEXT, TexStorage2DEXT, |
| 1670 WGC3Denum, WGC3Dint, WGC3Duint, WGC3Dint, WGC3Dint) |
| 1671 |
1669 #if WEBKIT_USING_SKIA | 1672 #if WEBKIT_USING_SKIA |
1670 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl:: | 1673 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl:: |
1671 onCreateGrGLInterface() { | 1674 onCreateGrGLInterface() { |
1672 return webkit_glue::CreateCommandBufferSkiaGLBinding(); | 1675 return webkit_glue::CreateCommandBufferSkiaGLBinding(); |
1673 } | 1676 } |
1674 #endif | 1677 #endif |
1675 | 1678 |
1676 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() { | 1679 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() { |
1677 // TODO(kbr): improve the precision here. | 1680 // TODO(kbr): improve the precision here. |
1678 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; | 1681 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; |
1679 if (context_lost_callback_) { | 1682 if (context_lost_callback_) { |
1680 context_lost_callback_->onContextLost(); | 1683 context_lost_callback_->onContextLost(); |
1681 } | 1684 } |
1682 } | 1685 } |
1683 | 1686 |
1684 } // namespace gpu | 1687 } // namespace gpu |
1685 } // namespace webkit | 1688 } // namespace webkit |
1686 | 1689 |
1687 #endif // defined(ENABLE_GPU) | 1690 #endif // defined(ENABLE_GPU) |
OLD | NEW |