Changeset 270477 in webkit
- Timestamp:
- Dec 5, 2020, 1:28:48 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 62 edited
-
ChangeLog (modified) (1 diff)
-
Source/CMakeLists.txt (modified) (1 diff)
-
Source/WTF/ChangeLog (modified) (1 diff)
-
Source/WTF/wtf/Platform.h (modified) (1 diff)
-
Source/WTF/wtf/PlatformEnable.h (modified) (2 diffs)
-
Source/WebCore/CMakeLists.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/Chrome.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/ANGLEWebKitBridge.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/ANGLEWebKitBridge.h (modified) (2 diffs)
-
Source/WebCore/platform/graphics/FormatConverter.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/FormatConverter.h (modified) (2 diffs)
-
Source/WebCore/platform/graphics/GLContext.cpp (modified) (1 diff)
-
Source/WebCore/platform/graphics/GLContext.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/GraphicsContextGL.cpp (modified) (1 diff)
-
Source/WebCore/platform/graphics/GraphicsContextGL.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/GraphicsContextGLAttributes.h (modified) (2 diffs)
-
Source/WebCore/platform/graphics/GraphicsContextGLImageExtractor.cpp (modified) (1 diff)
-
Source/WebCore/platform/graphics/GraphicsContextGLImageExtractor.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/OpenGLShims.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/angle/ExtensionsGLANGLE.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLEUtilities.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/angle/TemporaryANGLESetting.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/cairo/GraphicsContextGLCairo.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/cg/GraphicsContextGLCG.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/cv/GraphicsContextGLCV.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/cv/GraphicsContextGLCVANGLE.cpp (modified) (1 diff)
-
Source/WebCore/platform/graphics/cv/GraphicsContextGLCVANGLE.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/egl/GLContextEGL.cpp (modified) (1 diff)
-
Source/WebCore/platform/graphics/egl/GLContextEGL.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/glx/GLContextGLX.cpp (modified) (1 diff)
-
Source/WebCore/platform/graphics/glx/GLContextGLX.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/nicosia/texmap/NicosiaGCGLANGLELayer.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/opengl/ExtensionsGLOpenGL.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/opengl/ExtensionsGLOpenGLCommon.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/opengl/ExtensionsGLOpenGLES.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGL.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGL.h (modified) (2 diffs)
-
Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGLBase.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGLCommon.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGLES.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGLManager.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGLPrivate.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/opengl/TemporaryOpenGLSetting.cpp (modified) (1 diff)
-
Source/WebCore/platform/graphics/opengl/TemporaryOpenGLSetting.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapper.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/texmap/TextureMapperGCGLPlatformLayer.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/texmap/TextureMapperGCGLPlatformLayer.h (modified) (2 diffs)
-
Source/WebCore/platform/graphics/win/GraphicsContextGLDirect2D.cpp (modified) (2 diffs)
-
Source/WebKit/CMakeLists.txt (modified) (1 diff)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp (modified) (2 diffs)
-
Source/WebKit/UIProcess/gtk/HardwareAccelerationManager.cpp (modified) (1 diff)
-
Source/cmake/GStreamerDependencies.cmake (modified) (1 diff)
-
Source/cmake/OptionsFTW.cmake (modified) (1 diff)
-
Source/cmake/OptionsGTK.cmake (modified) (5 diffs)
-
Source/cmake/OptionsMac.cmake (modified) (1 diff)
-
Source/cmake/OptionsPlayStation.cmake (modified) (1 diff)
-
Source/cmake/OptionsWPE.cmake (modified) (1 diff)
-
Source/cmake/OptionsWinCairo.cmake (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r270178 r270477 1 2020-12-05 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Remove ENABLE_GRAPHICS_CONTEXT_GL by replacing it with ENABLE(WEBGL) 4 https://bugs.webkit.org/show_bug.cgi?id=219551 5 6 Reviewed by Kenneth Russell. 7 8 * Source/CMakeLists.txt: 9 * Source/cmake/GStreamerDependencies.cmake: 10 * Source/cmake/OptionsFTW.cmake: 11 * Source/cmake/OptionsGTK.cmake: 12 * Source/cmake/OptionsMac.cmake: 13 * Source/cmake/OptionsPlayStation.cmake: 14 * Source/cmake/OptionsWPE.cmake: 15 * Source/cmake/OptionsWinCairo.cmake: 16 1 17 2020-11-26 Lauro Moura <lmoura@igalia.com> 2 18 -
trunk/Source/CMakeLists.txt
r260844 r270477 14 14 add_subdirectory(JavaScriptCore) 15 15 16 if (ENABLE_ GRAPHICS_CONTEXT_GL)16 if (ENABLE_WEBGL) 17 17 add_subdirectory(ThirdParty/ANGLE) 18 18 endif () -
trunk/Source/WTF/ChangeLog
r270449 r270477 1 2020-12-05 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Remove ENABLE_GRAPHICS_CONTEXT_GL by replacing it with ENABLE(WEBGL) 4 https://bugs.webkit.org/show_bug.cgi?id=219551 5 6 Reviewed by Kenneth Russell. 7 8 * wtf/Platform.h: 9 * wtf/PlatformEnable.h: 10 1 11 2020-12-04 David Kilzer <ddkilzer@apple.com> 2 12 -
trunk/Source/WTF/wtf/Platform.h
r270395 r270477 161 161 #endif 162 162 163 #if USE(TEXTURE_MAPPER) && ENABLE(GRAPHICS_CONTEXT_GL) && !defined(USE_TEXTURE_MAPPER_GL)164 #define USE_TEXTURE_MAPPER_GL 1165 #endif166 167 163 /* FIXME: This is used to "turn on a specific feature of WebKit", so should be converted to an ENABLE macro. */ 168 164 #if PLATFORM(COCOA) && ENABLE(ACCESSIBILITY) -
trunk/Source/WTF/wtf/PlatformEnable.h
r270377 r270477 494 494 #endif 495 495 496 #if !defined(ENABLE_GRAPHICS_CONTEXT_GL)497 #define ENABLE_GRAPHICS_CONTEXT_GL ENABLE_WEBGL498 #endif499 500 496 #if !defined(ENABLE_WEB_ARCHIVE) 501 497 #define ENABLE_WEB_ARCHIVE 0 … … 877 873 #endif 878 874 879 #if ENABLE(WEBGL) && !ENABLE(GRAPHICS_CONTEXT_GL)880 #error "ENABLE(WEBGL) requires ENABLE(GRAPHICS_CONTEXT_GL)"881 #endif882 883 875 #if ENABLE(WEBGL2) && !ENABLE(WEBGL) 884 876 #error "ENABLE(WEBGL2) requires ENABLE(WEBGL)" -
trunk/Source/WebCore/CMakeLists.txt
r270297 r270477 1622 1622 ) 1623 1623 1624 if (ENABLE_ GRAPHICS_CONTEXT_GL)1624 if (ENABLE_WEBGL) 1625 1625 list(APPEND WebCore_SOURCES 1626 1626 platform/graphics/ANGLEWebKitBridge.cpp -
trunk/Source/WebCore/ChangeLog
r270476 r270477 1 2020-12-05 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Remove ENABLE_GRAPHICS_CONTEXT_GL by replacing it with ENABLE(WEBGL) 4 https://bugs.webkit.org/show_bug.cgi?id=219551 5 6 Reviewed by Kenneth Russell. 7 8 GraphicsContextGL is a module only for WebGL. ENABLE_WEBGL should 9 be removed if all ports enable it. 10 11 * CMakeLists.txt: 12 * page/Chrome.cpp: 13 (WebCore::Chrome::windowScreenDidChange): 14 * platform/graphics/ANGLEWebKitBridge.cpp: 15 * platform/graphics/ANGLEWebKitBridge.h: 16 * platform/graphics/FormatConverter.cpp: 17 * platform/graphics/FormatConverter.h: 18 * platform/graphics/GLContext.cpp: 19 * platform/graphics/GLContext.h: 20 * platform/graphics/GraphicsContextGL.cpp: 21 * platform/graphics/GraphicsContextGL.h: 22 * platform/graphics/GraphicsContextGLAttributes.h: 23 * platform/graphics/GraphicsContextGLImageExtractor.cpp: 24 * platform/graphics/GraphicsContextGLImageExtractor.h: 25 * platform/graphics/OpenGLShims.cpp: 26 * platform/graphics/angle/ExtensionsGLANGLE.cpp: 27 * platform/graphics/angle/GraphicsContextGLANGLE.cpp: 28 * platform/graphics/angle/GraphicsContextGLANGLEUtilities.h: 29 * platform/graphics/angle/TemporaryANGLESetting.cpp: 30 * platform/graphics/cairo/GraphicsContextGLCairo.cpp: 31 * platform/graphics/cg/GraphicsContextGLCG.cpp: 32 * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm: 33 * platform/graphics/cv/GraphicsContextGLCV.h: 34 * platform/graphics/cv/GraphicsContextGLCVANGLE.cpp: 35 * platform/graphics/cv/GraphicsContextGLCVANGLE.h: 36 * platform/graphics/egl/GLContextEGL.cpp: 37 * platform/graphics/egl/GLContextEGL.h: 38 * platform/graphics/glx/GLContextGLX.cpp: 39 * platform/graphics/glx/GLContextGLX.h: 40 * platform/graphics/nicosia/texmap/NicosiaGCGLANGLELayer.h: 41 * platform/graphics/opengl/ExtensionsGLOpenGL.cpp: 42 * platform/graphics/opengl/ExtensionsGLOpenGLCommon.cpp: 43 * platform/graphics/opengl/ExtensionsGLOpenGLES.cpp: 44 * platform/graphics/opengl/GraphicsContextGLOpenGL.cpp: 45 * platform/graphics/opengl/GraphicsContextGLOpenGL.h: 46 * platform/graphics/opengl/GraphicsContextGLOpenGLBase.cpp: 47 * platform/graphics/opengl/GraphicsContextGLOpenGLCommon.cpp: 48 * platform/graphics/opengl/GraphicsContextGLOpenGLES.cpp: 49 * platform/graphics/opengl/GraphicsContextGLOpenGLManager.cpp: 50 * platform/graphics/opengl/GraphicsContextGLOpenGLPrivate.cpp: 51 * platform/graphics/opengl/TemporaryOpenGLSetting.cpp: 52 * platform/graphics/opengl/TemporaryOpenGLSetting.h: 53 * platform/graphics/texmap/GraphicsContextGLTextureMapper.cpp: 54 * platform/graphics/texmap/TextureMapperGCGLPlatformLayer.cpp: 55 * platform/graphics/texmap/TextureMapperGCGLPlatformLayer.h: 56 * platform/graphics/win/GraphicsContextGLDirect2D.cpp: 57 1 58 2020-12-05 Andres Gonzalez <andresg_22@apple.com> 2 59 -
trunk/Source/WebCore/page/Chrome.cpp
r270273 r270477 68 68 #endif 69 69 70 #if PLATFORM(MAC) && ENABLE( GRAPHICS_CONTEXT_GL)70 #if PLATFORM(MAC) && ENABLE(WEBGL) 71 71 #include "GraphicsContextGLOpenGLManager.h" 72 72 #endif … … 543 543 m_page.windowScreenDidChange(displayID, nominalFrameInterval); 544 544 545 #if PLATFORM(MAC) && ENABLE( GRAPHICS_CONTEXT_GL)545 #if PLATFORM(MAC) && ENABLE(WEBGL) 546 546 GraphicsContextGLOpenGLManager::sharedManager().screenDidChange(displayID, this); 547 547 #endif -
trunk/Source/WebCore/platform/graphics/ANGLEWebKitBridge.cpp
r254551 r270477 26 26 #include "config.h" 27 27 28 #if ENABLE( GRAPHICS_CONTEXT_GL)28 #if ENABLE(WEBGL) && !USE(ANGLE) 29 29 30 30 #include "ANGLEWebKitBridge.h" … … 207 207 } 208 208 209 #endif // ENABLE( GRAPHICS_CONTEXT_GL)209 #endif // ENABLE(WEBGL) && !USE(ANGLE) -
trunk/Source/WebCore/platform/graphics/ANGLEWebKitBridge.h
r254551 r270477 26 26 #pragma once 27 27 28 #if ENABLE( GRAPHICS_CONTEXT_GL)28 #if ENABLE(WEBGL) && !USE(ANGLE) 29 29 30 30 #if USE(LIBEPOXY) … … 108 108 } // namespace WebCore 109 109 110 #endif // ENABLE( GRAPHICS_CONTEXT_GL)110 #endif // ENABLE(WEBGL) && !USE(ANGLE) -
trunk/Source/WebCore/platform/graphics/FormatConverter.cpp
r269850 r270477 28 28 #include "config.h" 29 29 30 #if ENABLE( GRAPHICS_CONTEXT_GL)30 #if ENABLE(WEBGL) 31 31 32 32 #include "FormatConverter.h" … … 1811 1811 } // namespace WebCore 1812 1812 1813 #endif // ENABLE( GRAPHICS_CONTEXT_GL)1813 #endif // ENABLE(WEBGL) -
trunk/Source/WebCore/platform/graphics/FormatConverter.h
r269850 r270477 28 28 #pragma once 29 29 30 #if ENABLE( GRAPHICS_CONTEXT_GL)30 #if ENABLE(WEBGL) 31 31 32 32 #include "GraphicsContextGL.h" … … 90 90 } // namespace WebCore 91 91 92 #endif // ENABLE( GRAPHICS_CONTEXT_GL)92 #endif // ENABLE(WEBGL) -
trunk/Source/WebCore/platform/graphics/GLContext.cpp
r254064 r270477 19 19 #include "config.h" 20 20 21 #if ENABLE(GRAPHICS_CONTEXT_GL)21 #if USE(OPENGL) || USE(OPENGL_ES) 22 22 #include "GLContext.h" 23 23 #include <wtf/ThreadSpecific.h> -
trunk/Source/WebCore/platform/graphics/GLContext.h
r268453 r270477 75 75 virtual bool isEGLContext() const = 0; 76 76 77 #if ENABLE( GRAPHICS_CONTEXT_GL)77 #if ENABLE(WEBGL) 78 78 virtual PlatformGraphicsContextGL platformContext() = 0; 79 79 #endif -
trunk/Source/WebCore/platform/graphics/GraphicsContextGL.cpp
r269850 r270477 29 29 #include "GraphicsContextGL.h" 30 30 31 #if ENABLE( GRAPHICS_CONTEXT_GL)31 #if ENABLE(WEBGL) 32 32 33 33 #include "ExtensionsGL.h" -
trunk/Source/WebCore/platform/graphics/GraphicsContextGL.h
r270400 r270477 26 26 #pragma once 27 27 28 #if ENABLE( GRAPHICS_CONTEXT_GL)28 #if ENABLE(WEBGL) 29 29 30 30 #include "GraphicsContextGLAttributes.h" -
trunk/Source/WebCore/platform/graphics/GraphicsContextGLAttributes.h
r261679 r270477 26 26 #pragma once 27 27 28 #if ENABLE( GRAPHICS_CONTEXT_GL)28 #if ENABLE(WEBGL) 29 29 30 30 namespace WebCore { … … 61 61 } 62 62 63 #endif // ENABLE( GRAPHICS_CONTEXT_GL)63 #endif // ENABLE(WEBGL) -
trunk/Source/WebCore/platform/graphics/GraphicsContextGLImageExtractor.cpp
r268578 r270477 27 27 #include "GraphicsContextGLImageExtractor.h" 28 28 29 #if ENABLE( GRAPHICS_CONTEXT_GL)29 #if ENABLE(WEBGL) 30 30 31 31 namespace WebCore { -
trunk/Source/WebCore/platform/graphics/GraphicsContextGLImageExtractor.h
r269614 r270477 26 26 #pragma once 27 27 28 #if ENABLE( GRAPHICS_CONTEXT_GL)28 #if ENABLE(WEBGL) 29 29 30 30 #include "GraphicsContextGL.h" -
trunk/Source/WebCore/platform/graphics/OpenGLShims.cpp
r254064 r270477 18 18 19 19 #include "config.h" 20 #if ENABLE( GRAPHICS_CONTEXT_GL)20 #if ENABLE(WEBGL) 21 21 22 22 #define DISABLE_SHIMS … … 231 231 } // namespace WebCore 232 232 233 #endif // ENABLE( GRAPHICS_CONTEXT_GL)233 #endif // ENABLE(WEBGL) -
trunk/Source/WebCore/platform/graphics/angle/ExtensionsGLANGLE.cpp
r270400 r270477 26 26 #include "config.h" 27 27 28 #if ENABLE( GRAPHICS_CONTEXT_GL) && USE(ANGLE)28 #if ENABLE(WEBGL) && USE(ANGLE) 29 29 #include "ExtensionsGLANGLE.h" 30 30 … … 546 546 } // namespace WebCore 547 547 548 #endif // ENABLE( GRAPHICS_CONTEXT_GL) && USE(ANGLE)548 #endif // ENABLE(WEBGL) && USE(ANGLE) -
trunk/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp
r270401 r270477 27 27 #include "config.h" 28 28 29 #if ENABLE( GRAPHICS_CONTEXT_GL) && USE(ANGLE)29 #if ENABLE(WEBGL) && USE(ANGLE) 30 30 #include "GraphicsContextGL.h" 31 31 … … 2967 2967 } 2968 2968 2969 #endif // ENABLE( GRAPHICS_CONTEXT_GL) && USE(ANGLE)2969 #endif // ENABLE(WEBGL) && USE(ANGLE) -
trunk/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLEUtilities.h
r268386 r270477 26 26 #pragma once 27 27 28 #if ENABLE( GRAPHICS_CONTEXT_GL) && USE(ANGLE)28 #if ENABLE(WEBGL) && USE(ANGLE) 29 29 30 30 #include "GraphicsTypesGL.h" -
trunk/Source/WebCore/platform/graphics/angle/TemporaryANGLESetting.cpp
r254064 r270477 27 27 #include "config.h" 28 28 29 #if ENABLE( GRAPHICS_CONTEXT_GL) && USE(ANGLE)29 #if ENABLE(WEBGL) && USE(ANGLE) 30 30 #include "TemporaryANGLESetting.h" 31 31 … … 61 61 } 62 62 63 #endif // ENABLE( GRAPHICS_CONTEXT_GL) && USE(ANGLE)63 #endif // ENABLE(WEBGL) && USE(ANGLE) -
trunk/Source/WebCore/platform/graphics/cairo/GraphicsContextGLCairo.cpp
r269614 r270477 29 29 #include "GraphicsContextGLOpenGL.h" 30 30 31 #if ENABLE( GRAPHICS_CONTEXT_GL) && USE(CAIRO)31 #if ENABLE(WEBGL) && USE(CAIRO) 32 32 33 33 #include "CairoUtilities.h" … … 139 139 } // namespace WebCore 140 140 141 #endif // ENABLE( GRAPHICS_CONTEXT_GL) && USE(CAIRO)141 #endif // ENABLE(WEBGL) && USE(CAIRO) -
trunk/Source/WebCore/platform/graphics/cg/GraphicsContextGLCG.cpp
r269614 r270477 27 27 #include "config.h" 28 28 29 #if ENABLE( GRAPHICS_CONTEXT_GL)29 #if ENABLE(WEBGL) 30 30 31 31 #include "BitmapImage.h" … … 554 554 } // namespace WebCore 555 555 556 #endif // ENABLE( GRAPHICS_CONTEXT_GL)556 #endif // ENABLE(WEBGL) -
trunk/Source/WebCore/platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm
r270401 r270477 26 26 #import "config.h" 27 27 28 #if ENABLE( GRAPHICS_CONTEXT_GL)28 #if ENABLE(WEBGL) 29 29 #import "GraphicsContextGLOpenGL.h" 30 30 … … 710 710 } 711 711 712 #endif // ENABLE( GRAPHICS_CONTEXT_GL)712 #endif // ENABLE(WEBGL) -
trunk/Source/WebCore/platform/graphics/cv/GraphicsContextGLCV.h
r269678 r270477 26 26 #pragma once 27 27 28 #if ENABLE( GRAPHICS_CONTEXT_GL) && USE(AVFOUNDATION)28 #if ENABLE(WEBGL) && USE(AVFOUNDATION) 29 29 30 30 #include "GraphicsContextGL.h" -
trunk/Source/WebCore/platform/graphics/cv/GraphicsContextGLCVANGLE.cpp
r270401 r270477 27 27 #include "GraphicsContextGLCVANGLE.h" 28 28 29 #if ENABLE( GRAPHICS_CONTEXT_GL) && ENABLE(VIDEO) && USE(AVFOUNDATION)29 #if ENABLE(WEBGL) && ENABLE(VIDEO) && USE(AVFOUNDATION) 30 30 31 31 #include "FourCC.h" -
trunk/Source/WebCore/platform/graphics/cv/GraphicsContextGLCVANGLE.h
r269678 r270477 26 26 #pragma once 27 27 28 #if ENABLE( GRAPHICS_CONTEXT_GL) && ENABLE(VIDEO) && USE(AVFOUNDATION)28 #if ENABLE(WEBGL) && ENABLE(VIDEO) && USE(AVFOUNDATION) 29 29 30 30 #import "GraphicsContextGLCV.h" -
trunk/Source/WebCore/platform/graphics/egl/GLContextEGL.cpp
r269850 r270477 492 492 } 493 493 494 #if ENABLE( GRAPHICS_CONTEXT_GL)494 #if ENABLE(WEBGL) 495 495 PlatformGraphicsContextGL GLContextEGL::platformContext() 496 496 { -
trunk/Source/WebCore/platform/graphics/egl/GLContextEGL.h
r268453 r270477 66 66 bool isEGLContext() const override { return true; } 67 67 68 #if ENABLE( GRAPHICS_CONTEXT_GL)68 #if ENABLE(WEBGL) 69 69 PlatformGraphicsContextGL platformContext() override; 70 70 #endif -
trunk/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp
r268453 r270477 395 395 } 396 396 397 #if ENABLE( GRAPHICS_CONTEXT_GL)397 #if ENABLE(WEBGL) 398 398 PlatformGraphicsContextGL GLContextGLX::platformContext() 399 399 { -
trunk/Source/WebCore/platform/graphics/glx/GLContextGLX.h
r268453 r270477 50 50 bool isEGLContext() const override { return false; } 51 51 52 #if ENABLE( GRAPHICS_CONTEXT_GL)52 #if ENABLE(WEBGL) 53 53 PlatformGraphicsContextGL platformContext() override; 54 54 #endif -
trunk/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaGCGLANGLELayer.h
r263076 r270477 62 62 63 63 bool makeContextCurrent(); 64 #if ENABLE( GRAPHICS_CONTEXT_GL)64 #if ENABLE(WEBGL) 65 65 PlatformGraphicsContextGL platformContext() const; 66 66 #endif -
trunk/Source/WebCore/platform/graphics/opengl/ExtensionsGLOpenGL.cpp
r270400 r270477 27 27 #include "ExtensionsGLOpenGL.h" 28 28 29 #if ENABLE( GRAPHICS_CONTEXT_GL) && USE(OPENGL)29 #if ENABLE(WEBGL) && USE(OPENGL) 30 30 31 31 #include "GraphicsContextGLOpenGL.h" … … 283 283 } // namespace WebCore 284 284 285 #endif // ENABLE( GRAPHICS_CONTEXT_GL) && USE(OPENGL)285 #endif // ENABLE(WEBGL) && USE(OPENGL) -
trunk/Source/WebCore/platform/graphics/opengl/ExtensionsGLOpenGLCommon.cpp
r270400 r270477 27 27 #include "config.h" 28 28 29 #if ENABLE( GRAPHICS_CONTEXT_GL) && (USE(OPENGL) || USE(OPENGL_ES))29 #if ENABLE(WEBGL) && !USE(ANGLE) 30 30 #include "ExtensionsGLOpenGLCommon.h" 31 31 … … 436 436 } // namespace WebCore 437 437 438 #endif // ENABLE( GRAPHICS_CONTEXT_GL) && (USE(OPENGL) || USE(OPENGL_ES))438 #endif // ENABLE(WEBGL) && !USE(ANGLE) -
trunk/Source/WebCore/platform/graphics/opengl/ExtensionsGLOpenGLES.cpp
r270400 r270477 31 31 #include "ExtensionsGLOpenGLES.h" 32 32 33 #if ENABLE( GRAPHICS_CONTEXT_GL)33 #if ENABLE(WEBGL) 34 34 #include "GraphicsContextGLOpenGL.h" 35 35 #include "NotImplemented.h" … … 331 331 } // namespace WebCore 332 332 333 #endif // ENABLE( GRAPHICS_CONTEXT_GL)333 #endif // ENABLE(WEBGL) 334 334 335 335 #endif // USE(OPENGL_ES) -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGL.cpp
r270185 r270477 29 29 #include "GraphicsContextGLOpenGL.h" 30 30 31 #if ENABLE( GRAPHICS_CONTEXT_GL)31 #if ENABLE(WEBGL) 32 32 33 33 #include "ExtensionsGL.h" … … 197 197 } // namespace WebCore 198 198 199 #endif // ENABLE( GRAPHICS_CONTEXT_GL)199 #endif // ENABLE(WEBGL) -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGL.h
r270451 r270477 26 26 #pragma once 27 27 28 #if ENABLE( GRAPHICS_CONTEXT_GL)28 #if ENABLE(WEBGL) 29 29 30 30 #include "GraphicsContextGL.h" … … 752 752 } // namespace WebCore 753 753 754 #endif // ENABLE( GRAPHICS_CONTEXT_GL)754 #endif // ENABLE(WEBGL) -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGLBase.cpp
r270400 r270477 28 28 #include "GraphicsContextGLOpenGL.h" 29 29 30 #if ENABLE( GRAPHICS_CONTEXT_GL) && USE(OPENGL)30 #if ENABLE(WEBGL) && USE(OPENGL) 31 31 32 32 #include "ExtensionsGLOpenGL.h" … … 449 449 } 450 450 451 #endif // ENABLE( GRAPHICS_CONTEXT_GL) && USE(OPENGL)451 #endif // ENABLE(WEBGL) && USE(OPENGL) -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGLCommon.cpp
r270400 r270477 30 30 #include "GraphicsContextGLOpenGL.h" 31 31 32 #if ENABLE( GRAPHICS_CONTEXT_GL) && (USE(OPENGL) || USE(OPENGL_ES))32 #if ENABLE(WEBGL) && !USE(ANGLE) 33 33 34 34 #if USE(OPENGL_ES) … … 2962 2962 } 2963 2963 2964 #endif // ENABLE( GRAPHICS_CONTEXT_GL) && (USE(OPENGL) || USE(OPENGL_ES))2964 #endif // ENABLE(WEBGL) && !USE(ANGLE) -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGLES.cpp
r270400 r270477 30 30 #include "GraphicsContextGLOpenGL.h" 31 31 32 #if ENABLE( GRAPHICS_CONTEXT_GL) && USE(OPENGL_ES)32 #if ENABLE(WEBGL) && USE(OPENGL_ES) 33 33 34 34 #include "ExtensionsGLOpenGLES.h" … … 413 413 } 414 414 415 #endif // ENABLE( GRAPHICS_CONTEXT_GL) && USE(OPENGL_ES)415 #endif // ENABLE(WEBGL) && USE(OPENGL_ES) -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGLManager.cpp
r268198 r270477 26 26 #include "config.h" 27 27 28 #if ENABLE( GRAPHICS_CONTEXT_GL)28 #if ENABLE(WEBGL) 29 29 #include "GraphicsContextGLOpenGLManager.h" 30 30 … … 276 276 } // namespace WebCore 277 277 278 #endif // ENABLE( GRAPHICS_CONTEXT_GL)278 #endif // ENABLE(WEBGL) -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGLPrivate.cpp
r254064 r270477 20 20 #include "config.h" 21 21 22 #if ENABLE( GRAPHICS_CONTEXT_GL)22 #if ENABLE(WEBGL) 23 23 #include "GraphicsContextGLOpenGLPrivate.h" 24 24 … … 65 65 } // namespace WebCore 66 66 67 #endif // ENABLE( GRAPHICS_CONTEXT_GL)67 #endif // ENABLE(WEBGL) -
trunk/Source/WebCore/platform/graphics/opengl/TemporaryOpenGLSetting.cpp
r254064 r270477 27 27 #include "config.h" 28 28 29 #if ENABLE( GRAPHICS_CONTEXT_GL) && (USE(OPENGL) || USE(OPENGL_ES))29 #if ENABLE(WEBGL) && (USE(OPENGL) || USE(OPENGL_ES)) 30 30 #include "TemporaryOpenGLSetting.h" 31 31 -
trunk/Source/WebCore/platform/graphics/opengl/TemporaryOpenGLSetting.h
r254214 r270477 29 29 #include "GraphicsTypesGL.h" 30 30 31 #if ENABLE( GRAPHICS_CONTEXT_GL) && (USE(OPENGL) || USE(OPENGL_ES))31 #if ENABLE(WEBGL) && (USE(OPENGL) || USE(OPENGL_ES)) 32 32 33 33 #include <wtf/Noncopyable.h> -
trunk/Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapper.cpp
r270451 r270477 29 29 #include "GraphicsContextGLOpenGL.h" 30 30 31 #if ENABLE( GRAPHICS_CONTEXT_GL) && USE(TEXTURE_MAPPER)31 #if ENABLE(WEBGL) && USE(TEXTURE_MAPPER) 32 32 33 33 #include "GraphicsContextGLOpenGLPrivate.h" … … 468 468 } // namespace WebCore 469 469 470 #endif // ENABLE( GRAPHICS_CONTEXT_GL) && USE(TEXTURE_MAPPER)470 #endif // ENABLE(WEBGL) && USE(TEXTURE_MAPPER) -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGCGLPlatformLayer.cpp
r263076 r270477 21 21 #include "TextureMapperGCGLPlatformLayer.h" 22 22 23 #if ENABLE( GRAPHICS_CONTEXT_GL) && USE(TEXTURE_MAPPER) && !USE(NICOSIA)23 #if ENABLE(WEBGL) && USE(TEXTURE_MAPPER) && !USE(NICOSIA) 24 24 25 25 #include "BitmapTextureGL.h" … … 122 122 } // namespace WebCore 123 123 124 #endif // ENABLE( GRAPHICS_CONTEXT_GL) && USE(TEXTURE_MAPPER)124 #endif // ENABLE(WEBGL) && USE(TEXTURE_MAPPER) -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGCGLPlatformLayer.h
r263076 r270477 20 20 #pragma once 21 21 22 #if ENABLE( GRAPHICS_CONTEXT_GL) && USE(TEXTURE_MAPPER) && !USE(NICOSIA)22 #if ENABLE(WEBGL) && USE(TEXTURE_MAPPER) && !USE(NICOSIA) 23 23 24 24 #include "GraphicsContextGLOpenGL.h" … … 59 59 } // namespace WebCore 60 60 61 #endif // ENABLE( GRAPHICS_CONTEXT_GL) && USE(TEXTURE_MAPPER)61 #endif // ENABLE(WEBGL) && USE(TEXTURE_MAPPER) -
trunk/Source/WebCore/platform/graphics/win/GraphicsContextGLDirect2D.cpp
r268578 r270477 27 27 #include "GraphicsContextGLOpenGL.h" 28 28 29 #if ENABLE( GRAPHICS_CONTEXT_GL) && USE(DIRECT2D)29 #if ENABLE(WEBGL) && USE(DIRECT2D) 30 30 31 31 #include "COMPtr.h" … … 59 59 } // namespace WebCore 60 60 61 #endif // ENABLE( GRAPHICS_CONTEXT_GL) && USE(DIRECT2D)61 #endif // ENABLE(WEBGL) && USE(DIRECT2D) -
trunk/Source/WebKit/CMakeLists.txt
r270462 r270477 299 299 endif () 300 300 301 if (ENABLE_GRAPHICS_CONTEXT_GL) 302 # For platforms that want to use system-provided OpenGL (ES) / EGL headers, 303 # these include directories, libraries or definitions need to be 304 # added before the ANGLE directories. 305 if (USE_LIBEPOXY) 301 # For platforms that want to use system-provided OpenGL (ES) / EGL headers, 302 # these include directories, libraries or definitions need to be 303 # added before the ANGLE directories. 304 if (USE_LIBEPOXY) 305 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES 306 ${LIBEPOXY_INCLUDE_DIRS} 307 ) 308 list(APPEND WebKit_PRIVATE_LIBRARIES 309 ${LIBEPOXY_LIBRARIES} 310 ) 311 add_definitions(${LIBEPOXY_DEFINITIONS}) 312 else () 313 if (USE_OPENGL) 306 314 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES 307 ${ LIBEPOXY_INCLUDE_DIRS}315 ${OPENGL_INCLUDE_DIRS} 308 316 ) 309 317 list(APPEND WebKit_PRIVATE_LIBRARIES 310 ${ LIBEPOXY_LIBRARIES}318 ${OPENGL_LIBRARIES} 311 319 ) 312 add_definitions(${LIBEPOXY_DEFINITIONS}) 313 else () 314 if (USE_OPENGL) 315 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES 316 ${OPENGL_INCLUDE_DIRS} 317 ) 318 list(APPEND WebKit_PRIVATE_LIBRARIES 319 ${OPENGL_LIBRARIES} 320 ) 321 add_definitions(${OPENGL_DEFINITIONS}) 322 elseif (USE_OPENGL_ES) 323 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES 324 ${OPENGLES2_INCLUDE_DIRS} 325 ) 326 list(APPEND WebKit_PRIVATE_LIBRARIES 327 ${OPENGLES2_LIBRARIES} 328 ) 329 add_definitions(${OPENGLES2_DEFINITIONS}) 330 endif () 331 332 if (USE_EGL) 333 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES 334 ${EGL_INCLUDE_DIRS} 335 ) 336 list(APPEND WebKit_PRIVATE_LIBRARIES 337 ${EGL_LIBRARIES} 338 ) 339 add_definitions(${EGL_DEFINITIONS}) 340 endif () 320 add_definitions(${OPENGL_DEFINITIONS}) 321 elseif (USE_OPENGL_ES) 322 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES 323 ${OPENGLES2_INCLUDE_DIRS} 324 ) 325 list(APPEND WebKit_PRIVATE_LIBRARIES 326 ${OPENGLES2_LIBRARIES} 327 ) 328 add_definitions(${OPENGLES2_DEFINITIONS}) 329 endif () 330 331 if (USE_EGL) 332 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES 333 ${EGL_INCLUDE_DIRS} 334 ) 335 list(APPEND WebKit_PRIVATE_LIBRARIES 336 ${EGL_LIBRARIES} 337 ) 338 add_definitions(${EGL_DEFINITIONS}) 341 339 endif () 342 340 endif () -
trunk/Source/WebKit/ChangeLog
r270470 r270477 1 2020-12-05 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Remove ENABLE_GRAPHICS_CONTEXT_GL by replacing it with ENABLE(WEBGL) 4 https://bugs.webkit.org/show_bug.cgi?id=219551 5 6 Reviewed by Kenneth Russell. 7 8 * CMakeLists.txt: 9 * UIProcess/API/glib/WebKitProtocolHandler.cpp: 10 (WebKit::WebKitProtocolHandler::handleGPU): 11 * UIProcess/gtk/HardwareAccelerationManager.cpp: 12 (WebKit::HardwareAccelerationManager::HardwareAccelerationManager): 13 1 14 2020-12-04 Said Abou-Hallawa <said@apple.com> 2 15 -
trunk/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp
r267875 r270477 347 347 hardwareAccelerationPolicy(request)); 348 348 349 #if ENABLE( GRAPHICS_CONTEXT_GL)349 #if ENABLE(WEBGL) 350 350 g_string_append_printf(html, 351 351 " <tbody><tr>" … … 481 481 } 482 482 #endif 483 #endif // ENABLE( GRAPHICS_CONTEXT_GL)483 #endif // ENABLE(WEBGL) 484 484 485 485 g_string_append(html, "<table>"); -
trunk/Source/WebKit/UIProcess/gtk/HardwareAccelerationManager.cpp
r260816 r270477 42 42 , m_forceHardwareAcceleration(false) 43 43 { 44 #if !ENABLE( GRAPHICS_CONTEXT_GL)44 #if !ENABLE(WEBGL) 45 45 m_canUseHardwareAcceleration = false; 46 46 return; -
trunk/Source/cmake/GStreamerDependencies.cmake
r260760 r270477 1 if (PORT STREQUAL "GTK")2 WEBKIT_OPTION_DEPEND(USE_GSTREAMER_GL ENABLE_GRAPHICS_CONTEXT_GL)3 endif ()4 1 WEBKIT_OPTION_DEPEND(USE_GSTREAMER_GL ENABLE_VIDEO) 5 2 WEBKIT_OPTION_DEPEND(USE_GSTREAMER_MPEGTS ENABLE_VIDEO) -
trunk/Source/cmake/OptionsFTW.cmake
r270120 r270477 235 235 SET_AND_EXPOSE_TO_BUILD(USE_INSPECTOR_SOCKET_SERVER OFF) 236 236 237 SET_AND_EXPOSE_TO_BUILD(ENABLE_GRAPHICS_CONTEXT_GL ON)238 239 237 set(WTF_LIBRARY_TYPE SHARED) 240 238 set(JavaScriptCore_LIBRARY_TYPE SHARED) -
trunk/Source/cmake/OptionsGTK.cmake
r270178 r270477 75 75 # Set the default value for ENABLE_GLES2 automatically. 76 76 # We are not enabling or disabling automatically a feature here, because 77 # the feature is by default always on (ENABLE_GRAPHICS_CONTEXT_GL=ON).77 # the feature is by default always on. 78 78 # What we select here automatically is if we use OPENGL (ENABLE_GLES2=OFF) 79 79 # or OPENGLES2 (ENABLE_GLES2=ON) for building the feature. … … 90 90 WEBKIT_OPTION_DEFINE(ENABLE_GTKDOC "Whether or not to use generate gtkdoc." PUBLIC OFF) 91 91 WEBKIT_OPTION_DEFINE(ENABLE_INTROSPECTION "Whether to enable GObject introspection." PUBLIC ON) 92 WEBKIT_OPTION_DEFINE(ENABLE_GRAPHICS_CONTEXT_GL "Whether to use OpenGL." PUBLIC ON)93 92 WEBKIT_OPTION_DEFINE(ENABLE_QUARTZ_TARGET "Whether to enable support for the Quartz windowing target." PUBLIC ${GTK_SUPPORTS_QUARTZ}) 94 93 WEBKIT_OPTION_DEFINE(ENABLE_X11_TARGET "Whether to enable support for the X11 windowing target." PUBLIC ${GTK_SUPPORTS_X11}) … … 106 105 WEBKIT_OPTION_DEFINE(USE_ANGLE_WEBGL "Whether to use ANGLE as WebGL backend." PRIVATE OFF) 107 106 108 WEBKIT_OPTION_DEPEND(ENABLE_3D_TRANSFORMS ENABLE_GRAPHICS_CONTEXT_GL)109 WEBKIT_OPTION_DEPEND(ENABLE_ASYNC_SCROLLING ENABLE_GRAPHICS_CONTEXT_GL)110 WEBKIT_OPTION_DEPEND(ENABLE_GLES2 ENABLE_GRAPHICS_CONTEXT_GL)111 WEBKIT_OPTION_DEPEND(ENABLE_WEBGL ENABLE_GRAPHICS_CONTEXT_GL)112 107 WEBKIT_OPTION_DEPEND(USE_ANGLE_WEBGL ENABLE_WEBGL) 113 WEBKIT_OPTION_DEPEND(USE_WPE_RENDERER ENABLE_GRAPHICS_CONTEXT_GL)114 108 WEBKIT_OPTION_DEPEND(USE_WPE_RENDERER ENABLE_WAYLAND_TARGET) 115 109 … … 273 267 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER TRUE) 274 268 275 if (ENABLE_GRAPHICS_CONTEXT_GL) 276 # ENABLE_GRAPHICS_CONTEXT_GL is true if either USE_OPENGL or ENABLE_GLES2 is true. 277 # But USE_OPENGL is the opposite of ENABLE_GLES2. 269 if (OPENGL_FOUND OR ENABLE_GLES2) 270 # USE_OPENGL is the opposite of ENABLE_GLES2. 278 271 if (ENABLE_GLES2) 279 272 find_package(OpenGLES2 REQUIRED) … … 285 278 endif () 286 279 else () 287 if (NOT OPENGL_FOUND)288 message(FATAL_ERROR "Either OpenGL or OpenGLES2 is needed for ENABLE_GRAPHICS_CONTEXT_GL.")289 endif ()290 280 SET_AND_EXPOSE_TO_BUILD(USE_OPENGL TRUE) 291 281 endif () 292 282 293 283 if (NOT EGL_FOUND AND (NOT ENABLE_X11_TARGET OR NOT GLX_FOUND)) 294 message(FATAL_ERROR "Either GLX or EGL is needed for ENABLE_GRAPHICS_CONTEXT_GL.")284 message(FATAL_ERROR "Either GLX or EGL is needed.") 295 285 endif () 296 286 -
trunk/Source/cmake/OptionsMac.cmake
r269045 r270477 107 107 WEBKIT_OPTION_END() 108 108 109 set(ENABLE_GRAPHICS_CONTEXT_GL ON)110 109 set(ENABLE_WEBKIT_LEGACY ON) 111 110 set(ENABLE_WEBKIT ON) -
trunk/Source/cmake/OptionsPlayStation.cmake
r270169 r270477 156 156 157 157 # Rendering options 158 SET_AND_EXPOSE_TO_BUILD(ENABLE_GRAPHICS_CONTEXT_GL ON)159 158 SET_AND_EXPOSE_TO_BUILD(USE_COORDINATED_GRAPHICS ON) 160 159 SET_AND_EXPOSE_TO_BUILD(USE_EGL ON) -
trunk/Source/cmake/OptionsWPE.cmake
r268793 r270477 229 229 endif () 230 230 231 SET_AND_EXPOSE_TO_BUILD(ENABLE_GRAPHICS_CONTEXT_GL TRUE)232 233 231 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER TRUE) 234 232 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER_GL TRUE) -
trunk/Source/cmake/OptionsWinCairo.cmake
r267771 r270477 60 60 SET_AND_EXPOSE_TO_BUILD(USE_INSPECTOR_SOCKET_SERVER ${ENABLE_REMOTE_INSPECTOR}) 61 61 62 SET_AND_EXPOSE_TO_BUILD(ENABLE_GRAPHICS_CONTEXT_GL ON)63 62 SET_AND_EXPOSE_TO_BUILD(ENABLE_DEVELOPER_MODE ${DEVELOPER_MODE}) 64 63
Note:
See TracChangeset
for help on using the changeset viewer.