Changeset 254400 in webkit
- Timestamp:
- Jan 11, 2020 9:42:01 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r254333 r254400 1 2020-01-10 Dean Jackson <dino@apple.com> 2 3 [WebGL] Clarify USE_OPENGL_ES_3 4 https://bugs.webkit.org/show_bug.cgi?id=206081 5 <rdar://problem/58486798> 6 7 Reviewed by Simon Fraser. 8 9 Make it clear that USE_ANGLE | USE_OPENGL | USE_OPENGL_ES are exclusive, 10 and that the availability of OpenGL ES 3 is a separate query. 11 12 * Source/cmake/OptionsFTW.cmake: 13 * Source/cmake/OptionsWPE.cmake: 14 * Source/cmake/OptionsWinCairo.cmake: 15 1 16 2020-01-10 Carlos Garcia Campos <cgarcia@igalia.com> 2 17 -
trunk/Source/WTF/ChangeLog
r254394 r254400 1 2020-01-10 Dean Jackson <dino@apple.com> 2 3 [WebGL] Clarify USE_OPENGL_ES_3 4 https://bugs.webkit.org/show_bug.cgi?id=206081 5 <rdar://problem/58486798> 6 7 Reviewed by Simon Fraser. 8 9 Make it clear that USE_ANGLE | USE_OPENGL | USE_OPENGL_ES are exclusive, 10 and that the availability of OpenGL ES 3 is a separate query. 11 12 * wtf/Platform.h: 13 1 14 2020-01-11 Yusuke Suzuki <ysuzuki@apple.com> 2 15 -
trunk/Source/WTF/wtf/Platform.h
r254317 r254400 1119 1119 #if PLATFORM(MAC) || (PLATFORM(MACCATALYST) && __has_include(<OpenGL/OpenGL.h>)) 1120 1120 #define USE_OPENGL 1 1121 #define USE_OPENGL_3 11122 1121 #define USE_OPENGL_ES 0 1123 #define USE_OPENGL_ES_3 01124 1122 #define USE_ANGLE 0 1125 1123 #else 1126 1124 #define USE_OPENGL 0 1127 #define USE_OPENGL_3 01128 1125 #define USE_OPENGL_ES 1 1129 #define USE_OPENGL_ES_3 11130 1126 #define USE_ANGLE 0 1131 1127 #endif … … 1134 1130 #define GL_SILENCE_DEPRECATION 1 1135 1131 #endif 1132 #if USE(OPENGL) && !defined(HAVE_OPENGL_4) 1133 #define HAVE_OPENGL_4 1 1134 #endif 1135 #if USE(OPENGL_ES) && !defined(HAVE_OPENGL_ES_3) 1136 #define HAVE_OPENGL_ES_3 1 1137 #endif 1138 #endif 1139 #if USE_ANGLE && (USE_OPENGL || USE_OPENGL_ES) 1140 #error USE_ANGLE is incompatible with USE_OPENGL and USE_OPENGL_ES 1136 1141 #endif 1137 1142 #endif -
trunk/Source/WebCore/ChangeLog
r254388 r254400 1 2020-01-10 Dean Jackson <dino@apple.com> 2 3 [WebGL] Clarify USE_OPENGL_ES_3 4 https://bugs.webkit.org/show_bug.cgi?id=206081 5 <rdar://problem/58486798> 6 7 Reviewed by Simon Fraser. 8 9 Make it clear that USE_ANGLE | USE_OPENGL | USE_OPENGL_ES are exclusive, 10 and that the availability of OpenGL ES 3 is a separate query. 11 12 * platform/graphics/opengl/GraphicsContextGLOpenGLCommon.cpp: 13 1 14 2020-01-10 Zalan Bujtas <zalan@apple.com> 2 15 -
trunk/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp
r254214 r254400 1833 1833 } 1834 1834 1835 void GraphicsContextGLOpenGL::copyBufferSubData(GCGLenum readTarget, GCGLenum writeTarget, GCGLintptr readOffset, GCGLintptr writeOffset, GCGLsizeiptr size) 1836 { 1837 makeContextCurrent(); 1838 gl::CopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size); 1839 } 1840 1841 void* GraphicsContextGLOpenGL::mapBufferRange(GCGLenum target, GCGLintptr offset, GCGLsizeiptr length, GCGLbitfield access) 1842 { 1843 makeContextCurrent(); 1844 return gl::MapBufferRange(target, offset, length, access); 1845 } 1846 1847 GCGLboolean GraphicsContextGLOpenGL::unmapBuffer(GCGLenum target) 1848 { 1849 makeContextCurrent(); 1850 return gl::UnmapBuffer(target); 1851 } 1852 1853 void GraphicsContextGLOpenGL::getInternalformativ(GCGLenum target, GCGLenum internalformat, GCGLenum pname, GCGLsizei bufSize, GCGLint* params) 1854 { 1855 makeContextCurrent(); 1856 gl::GetInternalformativ(target, internalformat, pname, bufSize, params); 1857 } 1858 1859 void GraphicsContextGLOpenGL::renderbufferStorageMultisample(GCGLenum target, GCGLsizei samples, GCGLenum internalformat, GCGLsizei width, GCGLsizei height) 1860 { 1861 makeContextCurrent(); 1862 gl::RenderbufferStorageMultisample(target, samples, internalformat, width, height); 1863 } 1864 1865 void GraphicsContextGLOpenGL::texStorage2D(GCGLenum target, GCGLsizei levels, GCGLenum internalformat, GCGLsizei width, GCGLsizei height) 1866 { 1867 makeContextCurrent(); 1868 gl::TexStorage2D(target, levels, internalformat, width, height); 1869 m_state.textureSeedCount.add(m_state.currentBoundTexture()); 1870 } 1871 1872 void GraphicsContextGLOpenGL::texStorage3D(GCGLenum target, GCGLsizei levels, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, GCGLsizei depth) 1873 { 1874 makeContextCurrent(); 1875 gl::TexStorage3D(target, levels, internalformat, width, height, depth); 1876 m_state.textureSeedCount.add(m_state.currentBoundTexture()); 1877 } 1878 1879 void GraphicsContextGLOpenGL::getActiveUniforms(PlatformGLObject program, const Vector<GCGLuint>& uniformIndices, GCGLenum pname, Vector<GCGLint>& params) 1880 { 1881 ASSERT(program); 1882 makeContextCurrent(); 1883 1884 gl::GetActiveUniformsiv(program, uniformIndices.size(), uniformIndices.data(), pname, params.data()); 1885 } 1886 1887 GCGLuint GraphicsContextGLOpenGL::getUniformBlockIndex(PlatformGLObject program, const String& uniformBlockName) 1888 { 1889 UNUSED_PARAM(program); 1890 UNUSED_PARAM(uniformBlockName); 1891 1892 return 0; 1893 } 1894 1895 void GraphicsContextGLOpenGL::getActiveUniformBlockiv(PlatformGLObject program, GCGLuint uniformBlockIndex, GCGLenum pname, GCGLint* params) 1896 { 1897 UNUSED_PARAM(program); 1898 UNUSED_PARAM(uniformBlockIndex); 1899 UNUSED_PARAM(pname); 1900 UNUSED_PARAM(params); 1901 } 1902 1903 String GraphicsContextGLOpenGL::getActiveUniformBlockName(PlatformGLObject program, GCGLuint uniformBlockIndex) 1904 { 1905 UNUSED_PARAM(program); 1906 UNUSED_PARAM(uniformBlockIndex); 1907 1908 return emptyString(); 1909 } 1910 1911 void GraphicsContextGLOpenGL::uniformBlockBinding(PlatformGLObject program, GCGLuint uniformBlockIndex, GCGLuint uniformBlockBinding) 1912 { 1913 UNUSED_PARAM(program); 1914 UNUSED_PARAM(uniformBlockIndex); 1915 UNUSED_PARAM(uniformBlockBinding); 1916 } 1917 1835 1918 } 1836 1919 -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGLCommon.cpp
r254350 r254400 2010 2010 } 2011 2011 2012 #if USE(OPENGL) && ENABLE(WEBGL2)2012 #if HAVE(OPENGL_4) && ENABLE(WEBGL2) 2013 2013 void GraphicsContextGLOpenGL::primitiveRestartIndex(GCGLuint index) 2014 2014 { … … 2036 2036 } 2037 2037 2038 #if USE(OPENGL_3) || USE(OPENGL_ES_3)2038 #if HAVE(OPENGL_4) || HAVE(OPENGL_ES_3) 2039 2039 void GraphicsContextGLOpenGL::copyBufferSubData(GCGLenum readTarget, GCGLenum writeTarget, GCGLintptr readOffset, GCGLintptr writeOffset, GCGLsizeiptr size) 2040 2040 { … … 2042 2042 ::glCopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size); 2043 2043 } 2044 #el se2044 #elif !USE(ANGLE) 2045 2045 void GraphicsContextGLOpenGL::copyBufferSubData(GCGLenum, GCGLenum, GCGLintptr, GCGLintptr, GCGLsizeiptr) 2046 2046 { … … 2057 2057 } 2058 2058 2059 #if USE(OPENGL_3) || USE(OPENGL_ES_3)2059 #if HAVE(OPENGL_4) || HAVE(OPENGL_ES_3) 2060 2060 void* GraphicsContextGLOpenGL::mapBufferRange(GCGLenum target, GCGLintptr offset, GCGLsizeiptr length, GCGLbitfield access) 2061 2061 { … … 2069 2069 return ::glUnmapBuffer(target); 2070 2070 } 2071 #el se2071 #elif !USE(ANGLE) 2072 2072 void* GraphicsContextGLOpenGL::mapBufferRange(GCGLenum, GCGLintptr, GCGLsizeiptr, GCGLbitfield) 2073 2073 { … … 2125 2125 } 2126 2126 2127 #if USE(OPENGL_3) || USE(OPENGL_ES_3)2127 #if HAVE(OPENGL_4) || HAVE(OPENGL_ES_3) 2128 2128 void GraphicsContextGLOpenGL::getInternalformativ(GCGLenum target, GCGLenum internalformat, GCGLenum pname, GCGLsizei bufSize, GCGLint* params) 2129 2129 { … … 2159 2159 m_state.textureSeedCount.add(m_state.currentBoundTexture()); 2160 2160 } 2161 #el se2161 #elif !USE(ANGLE) 2162 2162 void GraphicsContextGLOpenGL::getInternalformativ(GCGLenum, GCGLenum, GCGLenum, GCGLsizei, GCGLint*) 2163 2163 { … … 2749 2749 } 2750 2750 2751 #if USE(OPENGL_3) || USE(OPENGL_ES_3)2751 #if HAVE(OPENGL_4) || HAVE(OPENGL_ES_3) 2752 2752 void GraphicsContextGLOpenGL::getActiveUniforms(PlatformGLObject program, const Vector<GCGLuint>& uniformIndices, GCGLenum pname, Vector<GCGLint>& params) 2753 2753 { … … 2788 2788 UNUSED_PARAM(uniformBlockBinding); 2789 2789 } 2790 #el se2790 #elif !USE(ANGLE) 2791 2791 void GraphicsContextGLOpenGL::getActiveUniforms(PlatformGLObject, const Vector<GCGLuint>&, GCGLenum, Vector<GCGLint>&) 2792 2792 { -
trunk/Source/cmake/OptionsFTW.cmake
r254103 r254400 246 246 SET_AND_EXPOSE_TO_BUILD(USE_EXPORT_MACROS ON) 247 247 SET_AND_EXPOSE_TO_BUILD(USE_OPENGL_ES ON) 248 SET_AND_EXPOSE_TO_BUILD( USE_OPENGL_ES_3 ON)248 SET_AND_EXPOSE_TO_BUILD(HAVE_OPENGL_ES_3 ON) 249 249 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER ON) 250 250 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER_GL ON) -
trunk/Source/cmake/OptionsWPE.cmake
r254121 r254400 190 190 SET_AND_EXPOSE_TO_BUILD(USE_LIBWPE TRUE) 191 191 SET_AND_EXPOSE_TO_BUILD(USE_OPENGL_ES TRUE) 192 SET_AND_EXPOSE_TO_BUILD( USE_OPENGL_ES_3 TRUE)192 SET_AND_EXPOSE_TO_BUILD(HAVE_OPENGL_ES_3 TRUE) 193 193 SET_AND_EXPOSE_TO_BUILD(USE_WPE_RENDERER TRUE) 194 194 SET_AND_EXPOSE_TO_BUILD(USE_XDGMIME TRUE) -
trunk/Source/cmake/OptionsWinCairo.cmake
r254103 r254400 39 39 SET_AND_EXPOSE_TO_BUILD(USE_EGL ON) 40 40 SET_AND_EXPOSE_TO_BUILD(USE_OPENGL_ES ON) 41 SET_AND_EXPOSE_TO_BUILD( USE_OPENGL_ES_3 ON)41 SET_AND_EXPOSE_TO_BUILD(HAVE_OPENGL_ES_3 ON) 42 42 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER ON) 43 43 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER_GL ON)
Note: See TracChangeset
for help on using the changeset viewer.