Changeset 169714 in webkit
- Timestamp:
- Jun 9, 2014 2:09:09 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r169713 r169714 1 2014-06-09 Alex Christensen <achristensen@webkit.org> 2 3 [iOS WebGL] Implement OES_vertex_array_object for iOS. 4 https://bugs.webkit.org/show_bug.cgi?id=133629 5 6 Reviewed by Brady Eidson. 7 8 Covered by the Khronos test (and in LayoutTests): 9 conformance/extensions/oes-vertex-array-object.html 10 11 * platform/graphics/ios/GraphicsContext3DIOS.h: 12 Added OpenGL vertex array function renaming for iOS adding the OES suffix. 13 * platform/graphics/opengl/Extensions3DOpenGL.cpp: 14 (WebCore::Extensions3DOpenGL::createVertexArrayOES): 15 (WebCore::Extensions3DOpenGL::deleteVertexArrayOES): 16 (WebCore::Extensions3DOpenGL::isVertexArrayOES): 17 (WebCore::Extensions3DOpenGL::bindVertexArrayOES): 18 Added isVertexArrayObjectSupported and support for iOS. 19 (WebCore::Extensions3DOpenGL::supportsExtension): 20 Added iOS name for GL_OES_vertex_array_object extension. 21 * platform/graphics/opengl/Extensions3DOpenGL.h: 22 Added isVertexArrayObjectSupported for iOS. 23 1 24 2014-06-09 Eric Carlson <eric.carlson@apple.com> 2 25 -
trunk/Source/WebCore/platform/graphics/ios/GraphicsContext3DIOS.h
r165676 r169714 48 48 #define glVertexAttribDivisorARB glVertexAttribDivisorEXT 49 49 50 #define glBindVertexArray glBindVertexArrayOES 51 #define glDeleteVertexArrays glDeleteVertexArraysOES 52 #define glGenVertexArrays glGenVertexArraysOES 53 #define glIsVertexArray glIsVertexArrayOES 54 50 55 #define GL_COLOR_ATTACHMENT0_EXT GL_COLOR_ATTACHMENT0 51 56 #define GL_DEPTH24_STENCIL8_EXT GL_DEPTH24_STENCIL8_OES -
trunk/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp
r169654 r169714 87 87 m_context->makeContextCurrent(); 88 88 GLuint array = 0; 89 #if (PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN) )89 #if (PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN) || PLATFORM(IOS)) 90 90 if (isVertexArrayObjectSupported()) 91 91 glGenVertexArrays(1, &array); … … 102 102 103 103 m_context->makeContextCurrent(); 104 #if (PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN) )104 #if (PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN) || PLATFORM(IOS)) 105 105 if (isVertexArrayObjectSupported()) 106 106 glDeleteVertexArrays(1, &array); … … 116 116 117 117 m_context->makeContextCurrent(); 118 #if (PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN) )118 #if (PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN) || PLATFORM(IOS)) 119 119 if (isVertexArrayObjectSupported()) 120 120 return glIsVertexArray(array); … … 127 127 void Extensions3DOpenGL::bindVertexArrayOES(Platform3DObject array) 128 128 { 129 #if PLATFORM(IOS) 130 UNUSED_PARAM(array); 131 #endif 132 133 m_context->makeContextCurrent(); 134 #if (PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN)) 129 m_context->makeContextCurrent(); 130 #if (PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN) || PLATFORM(IOS)) 135 131 if (isVertexArrayObjectSupported()) 136 132 glBindVertexArray(array); … … 187 183 #if (PLATFORM(GTK) || PLATFORM(EFL)) 188 184 return m_availableExtensions.contains("GL_ARB_vertex_array_object"); 185 #elif PLATFORM(IOS) 186 return m_availableExtensions.contains("GL_OES_vertex_array_object"); 189 187 #else 190 188 return m_availableExtensions.contains("GL_APPLE_vertex_array_object"); … … 285 283 } 286 284 287 #if (PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN) )285 #if (PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN) || PLATFORM(IOS)) 288 286 bool Extensions3DOpenGL::isVertexArrayObjectSupported() 289 287 { -
trunk/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.h
r164468 r169714 64 64 virtual bool supportsExtension(const WTF::String&); 65 65 virtual String getExtensions(); 66 #if (PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN) )66 #if (PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN) || PLATFORM(IOS)) 67 67 private: 68 68 bool isVertexArrayObjectSupported();
Note: See TracChangeset
for help on using the changeset viewer.