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 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" | 5 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <string> | 10 #include <string> |
(...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1609 WGC3Denum WebGraphicsContext3DInProcessImpl::getGraphicsResetStatusARB() { | 1609 WGC3Denum WebGraphicsContext3DInProcessImpl::getGraphicsResetStatusARB() { |
1610 // TODO(kbr): this implementation doesn't support lost contexts yet. | 1610 // TODO(kbr): this implementation doesn't support lost contexts yet. |
1611 return GL_NO_ERROR; | 1611 return GL_NO_ERROR; |
1612 } | 1612 } |
1613 | 1613 |
1614 void WebGraphicsContext3DInProcessImpl::texImageIOSurface2DCHROMIUM( | 1614 void WebGraphicsContext3DInProcessImpl::texImageIOSurface2DCHROMIUM( |
1615 WGC3Denum target, WGC3Dint width, WGC3Dint height, | 1615 WGC3Denum target, WGC3Dint width, WGC3Dint height, |
1616 WGC3Duint ioSurfaceId, WGC3Duint plane) { | 1616 WGC3Duint ioSurfaceId, WGC3Duint plane) { |
1617 } | 1617 } |
1618 | 1618 |
| 1619 DELEGATE_TO_GL_5(texStorage2DEXT, TexStorage2DEXT, |
| 1620 WGC3Denum, WGC3Dint, WGC3Duint, WGC3Dint, WGC3Dint) |
| 1621 |
1619 #if WEBKIT_USING_SKIA | 1622 #if WEBKIT_USING_SKIA |
1620 GrGLInterface* WebGraphicsContext3DInProcessImpl::onCreateGrGLInterface() { | 1623 GrGLInterface* WebGraphicsContext3DInProcessImpl::onCreateGrGLInterface() { |
1621 return gfx::CreateInProcessSkiaGLBinding(); | 1624 return gfx::CreateInProcessSkiaGLBinding(); |
1622 } | 1625 } |
1623 #endif | 1626 #endif |
1624 | 1627 |
1625 bool WebGraphicsContext3DInProcessImpl::AngleCreateCompilers() { | 1628 bool WebGraphicsContext3DInProcessImpl::AngleCreateCompilers() { |
1626 if (!ShInitialize()) | 1629 if (!ShInitialize()) |
1627 return false; | 1630 return false; |
1628 | 1631 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1695 if (length > 1) { | 1698 if (length > 1) { |
1696 entry->translated_source.reset(new char[length]); | 1699 entry->translated_source.reset(new char[length]); |
1697 ShGetObjectCode(compiler, entry->translated_source.get()); | 1700 ShGetObjectCode(compiler, entry->translated_source.get()); |
1698 } | 1701 } |
1699 entry->is_valid = true; | 1702 entry->is_valid = true; |
1700 return true; | 1703 return true; |
1701 } | 1704 } |
1702 | 1705 |
1703 } // namespace gpu | 1706 } // namespace gpu |
1704 } // namespace webkit | 1707 } // namespace webkit |
OLD | NEW |