Changeset 254551 in webkit
- Timestamp:
- Jan 14, 2020, 6:00:00 PM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 19 edited
-
ThirdParty/ANGLE/ANGLE.xcodeproj/project.pbxproj (modified) (12 diffs)
-
ThirdParty/ANGLE/ChangeLog (modified) (1 diff)
-
ThirdParty/ANGLE/Configurations/ANGLE.xcconfig (modified) (1 diff)
-
ThirdParty/ANGLE/Configurations/Base.xcconfig (modified) (8 diffs)
-
ThirdParty/ANGLE/Configurations/DebugRelease.xcconfig (modified) (1 diff)
-
ThirdParty/ANGLE/include/CMakeLists.txt (modified) (1 diff)
-
ThirdParty/ANGLE/include/GLSLANG/ShaderLang.h (modified) (11 diffs)
-
ThirdParty/ANGLE/include/GLSLANG/ShaderVars.h (modified) (2 diffs)
-
ThirdParty/ANGLE/src/libANGLE/renderer/gl/cgl/DisplayCGL.mm (modified) (1 diff)
-
ThirdParty/ANGLE/src/libANGLE/renderer/gl/cgl/WindowSurfaceCGL.mm (modified) (2 diffs)
-
ThirdParty/ANGLE/src/libANGLE/renderer/gl/eagl/DisplayEAGL.mm (modified) (3 diffs)
-
ThirdParty/ANGLE/src/libANGLE/renderer/gl/eagl/WindowSurfaceEAGL.mm (modified) (2 diffs)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/Configurations/WebCore.xcconfig (modified) (4 diffs)
-
WebCore/Configurations/WebCoreTestSupport.xcconfig (modified) (2 diffs)
-
WebCore/WebCore.xcodeproj/project.pbxproj (modified) (1 diff)
-
WebCore/platform/graphics/ANGLEWebKitBridge.cpp (modified) (5 diffs)
-
WebCore/platform/graphics/ANGLEWebKitBridge.h (modified) (1 diff)
-
WebCore/platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/ThirdParty/ANGLE/ANGLE.xcodeproj/project.pbxproj
r253926 r254551 456 456 5CB3014F1DE39F4700D2C405 /* DisplayCGL.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CB301491DE39F4700D2C405 /* DisplayCGL.h */; }; 457 457 5CB301511DE39F4700D2C405 /* PbufferSurfaceCGL.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CB3014B1DE39F4700D2C405 /* PbufferSurfaceCGL.h */; }; 458 5CB304921DE4156200D2C405 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5CB3048D1DE4144400D2C405 /* OpenGL.framework */; }; 458 459 5CB304931DE4156B00D2C405 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5CB3048F1DE4145500D2C405 /* QuartzCore.framework */; }; 459 460 5CB304941DE4157200D2C405 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5CB3048B1DE4143500D2C405 /* CoreGraphics.framework */; }; … … 836 837 3153ACFE239071D900D51DD8 /* WebKitTargetConditionals.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = WebKitTargetConditionals.xcconfig; sourceTree = "<group>"; }; 837 838 3153ACFF239071D900D51DD8 /* Version.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Version.xcconfig; sourceTree = "<group>"; }; 838 3153AD002390C2EA00D51DD8 /* IOSurface.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOSurface.framework; path = System/Library/Frameworks/IOSurface.framework; sourceTree = SDKROOT; };839 3153AD022390C32100D51DD8 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; };840 839 315EBD3E1FCE43BD00AC7A89 /* uniform_type_info_autogen.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = uniform_type_info_autogen.cpp; sourceTree = "<group>"; }; 841 840 315EBD401FCE442600AC7A89 /* TranslatorVulkan.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TranslatorVulkan.cpp; sourceTree = "<group>"; }; … … 1500 1499 A3694FC523202C5200A83D8F /* BuiltinsWorkaroundGLSL.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BuiltinsWorkaroundGLSL.h; sourceTree = "<group>"; }; 1501 1500 A3E827A8230CAE2C00E76682 /* commit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = commit.h; sourceTree = "<group>"; }; 1502 FB39D0D11200F0E300088E69 /* libANGLE -shared.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "libANGLE-shared.dylib"; sourceTree = BUILT_PRODUCTS_DIR; };1501 FB39D0D11200F0E300088E69 /* libANGLE.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libANGLE.a; sourceTree = BUILT_PRODUCTS_DIR; }; 1503 1502 FB39D2BF1200F3E600088E69 /* ShaderLang.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = ShaderLang.h; sourceTree = "<group>"; }; 1504 1503 /* End PBXFileReference section */ … … 1510 1509 files = ( 1511 1510 5CB304941DE4157200D2C405 /* CoreGraphics.framework in Frameworks */, 1511 5CB304921DE4156200D2C405 /* OpenGL.framework in Frameworks */, 1512 1512 5CB304931DE4156B00D2C405 /* QuartzCore.framework in Frameworks */, 1513 1513 ); … … 2200 2200 children = ( 2201 2201 5CB3048B1DE4143500D2C405 /* CoreGraphics.framework */, 2202 3153AD022390C32100D51DD8 /* IOKit.framework */,2203 3153AD002390C2EA00D51DD8 /* IOSurface.framework */,2204 2202 5CB3048D1DE4144400D2C405 /* OpenGL.framework */, 2205 2203 5CB3048F1DE4145500D2C405 /* QuartzCore.framework */, … … 2505 2503 isa = PBXGroup; 2506 2504 children = ( 2507 FB39D0D11200F0E300088E69 /* libANGLE -shared.dylib*/,2505 FB39D0D11200F0E300088E69 /* libANGLE.a */, 2508 2506 ); 2509 2507 name = Products; … … 2977 2975 312BDB0D15FECACE0097EBC7 /* CopyFiles */, 2978 2976 6E28B8742294DD8000717E69 /* ShellScript */, 2979 313DE867239FFF91008FC47B /* Attempt to fool Apple Test Platform */,2980 2977 ); 2981 2978 buildRules = ( … … 2986 2983 name = ANGLE; 2987 2984 productName = angle; 2988 productReference = FB39D0D11200F0E300088E69 /* libANGLE -shared.dylib*/;2989 productType = "com.apple.product-type.library. dynamic";2985 productReference = FB39D0D11200F0E300088E69 /* libANGLE.a */; 2986 productType = "com.apple.product-type.library.static"; 2990 2987 }; 2991 2988 /* End PBXNativeTarget section */ … … 3018 3015 3019 3016 /* Begin PBXShellScriptBuildPhase section */ 3020 313DE867239FFF91008FC47B /* Attempt to fool Apple Test Platform */ = {3021 isa = PBXShellScriptBuildPhase;3022 buildActionMask = 2147483647;3023 files = (3024 );3025 inputFileListPaths = (3026 );3027 inputPaths = (3028 );3029 name = "Attempt to fool Apple Test Platform";3030 outputFileListPaths = (3031 );3032 outputPaths = (3033 );3034 runOnlyForDeploymentPostprocessing = 0;3035 shellPath = /bin/sh;3036 shellScript = "if [ \"$DEPLOYMENT_LOCATION\" == \"YES\" ] ; then\n # Apple-internal build.\n output_dir=${DSTROOT}${WK_ALTERNATE_FRAMEWORKS_DIR}/usr/local/lib\nelse\n # External build.\n output_dir=${BUILT_PRODUCTS_DIR}/usr/local/lib\nfi\n\nmkdir -p $output_dir\necho \"Fake file to fool Apple's test system\" > $output_dir/libANGLE.a\n";3037 };3038 3017 6E28B8742294DD8000717E69 /* ShellScript */ = { 3039 3018 isa = PBXShellScriptBuildPhase; … … 3395 3374 baseConfigurationReference = 5D7C59C51208C68B001C873E /* ANGLE.xcconfig */; 3396 3375 buildSettings = { 3376 GCC_PREPROCESSOR_DEFINITIONS = ( 3377 ANGLE_ENABLE_OPENGL, 3378 ANGLE_ENABLE_GLSL, 3379 ANGLE_ENABLE_ESSL, 3380 GL_SILENCE_DEPRECATION, 3381 ); 3382 HEADER_SEARCH_PATHS = ( 3383 include, 3384 src, 3385 third_party/base, 3386 src/common/third_party/base, 3387 ); 3388 OTHER_CPLUSPLUSFLAGS = "$(ASAN_OTHER_CPLUSPLUSFLAGS)"; 3397 3389 }; 3398 3390 name = Production; … … 3417 3409 baseConfigurationReference = 5D7C59C51208C68B001C873E /* ANGLE.xcconfig */; 3418 3410 buildSettings = { 3411 GCC_PREPROCESSOR_DEFINITIONS = ( 3412 ANGLE_ENABLE_OPENGL, 3413 ANGLE_ENABLE_GLSL, 3414 ANGLE_ENABLE_ESSL, 3415 GL_SILENCE_DEPRECATION, 3416 ); 3417 HEADER_SEARCH_PATHS = ( 3418 include, 3419 src, 3420 third_party/base, 3421 src/common/third_party/base, 3422 ); 3423 OTHER_CPLUSPLUSFLAGS = "$(ASAN_OTHER_CPLUSPLUSFLAGS)"; 3419 3424 }; 3420 3425 name = Debug; … … 3424 3429 baseConfigurationReference = 5D7C59C51208C68B001C873E /* ANGLE.xcconfig */; 3425 3430 buildSettings = { 3431 GCC_PREPROCESSOR_DEFINITIONS = ( 3432 ANGLE_ENABLE_OPENGL, 3433 ANGLE_ENABLE_GLSL, 3434 ANGLE_ENABLE_ESSL, 3435 GL_SILENCE_DEPRECATION, 3436 ); 3437 HEADER_SEARCH_PATHS = ( 3438 include, 3439 src, 3440 third_party/base, 3441 src/common/third_party/base, 3442 ); 3443 OTHER_CPLUSPLUSFLAGS = "$(ASAN_OTHER_CPLUSPLUSFLAGS)"; 3426 3444 }; 3427 3445 name = Release; -
trunk/Source/ThirdParty/ANGLE/ChangeLog
r254520 r254551 1 2020-01-14 Dean Jackson <dino@apple.com> 2 3 Build ANGLE as a dynamic library 4 https://bugs.webkit.org/show_bug.cgi?id=204708 5 rdar://57349384 6 7 Rolling this out for the 2nd time. 8 9 - it caused issues with the shared dyld cache, because the 10 cache doesn't know to include the libary until it already 11 exists in the build 12 - probably related to the above, we saw some performance 13 regressions directly related to this change 14 15 * ANGLE.xcodeproj/project.pbxproj: 16 * Configurations/ANGLE.xcconfig: 17 * Configurations/Base.xcconfig: 18 * Configurations/DebugRelease.xcconfig: 19 * include/CMakeLists.txt: 20 * include/GLSLANG/ShaderLang.h: 21 * include/GLSLANG/ShaderVars.h: 22 * src/libANGLE/renderer/gl/cgl/DisplayCGL.mm: 23 (rx::DisplayCGL::isValidNativeWindow const): 24 * src/libANGLE/renderer/gl/cgl/WindowSurfaceCGL.mm: 25 (rx::WindowSurfaceCGL::WindowSurfaceCGL): 26 (rx::WindowSurfaceCGL::~WindowSurfaceCGL): 27 * src/libANGLE/renderer/gl/eagl/DisplayEAGL.mm: 28 (rx::DisplayEAGL::terminate): 29 (rx::DisplayEAGL::isValidNativeWindow const): 30 (rx::WorkerContextEAGL::~WorkerContextEAGL): 31 * src/libANGLE/renderer/gl/eagl/WindowSurfaceEAGL.mm: 32 (rx::WindowSurfaceEAGL::WindowSurfaceEAGL): 33 (rx::WindowSurfaceEAGL::~WindowSurfaceEAGL): 34 1 35 2020-01-14 Kenneth Russell <kbr@chromium.org> 2 36 -
trunk/Source/ThirdParty/ANGLE/Configurations/ANGLE.xcconfig
r253824 r254551 2 2 #include "WebKitTargetConditionals.xcconfig" 3 3 4 PRODUCT_NAME = ANGLE-shared; 5 6 EXECUTABLE_PREFIX = lib; 7 8 ANGLE_OTHER_LDFLAGS = -allowable_client WebCore -allowable_client WebCoreTestSupport $(ANGLE_OTHER_LDFLAGS_$(WK_PLATFORM_NAME)); 9 ANGLE_OTHER_LDFLAGS_iphoneos = -framework IOSurface -framework OpenGLES; 10 ANGLE_OTHER_LDFLAGS_iphonesimulator = $(ANGLE_OTHER_LDFLAGS_iphoneos); 11 ANGLE_OTHER_LDFLAGS_watchos = $(ANGLE_OTHER_LDFLAGS_iphoneos); 12 ANGLE_OTHER_LDFLAGS_watchsimulator = $(ANGLE_OTHER_LDFLAGS_iphonesimulator); 13 ANGLE_OTHER_LDFLAGS_appletvos = $(ANGLE_OTHER_LDFLAGS_iphoneos); 14 ANGLE_OTHER_LDFLAGS_appletvsimulator = $(ANGLE_OTHER_LDFLAGS_iphonesimulator); 15 ANGLE_OTHER_LDFLAGS_maccatalyst = -framework IOKit -framework IOSurface -framework OpenGL; 16 ANGLE_OTHER_LDFLAGS_macosx = -framework IOKit -framework IOSurface -framework OpenGL; 17 18 INSTALL_PATH = $(NORMAL_WEBCORE_FRAMEWORKS_DIR)/WebCore.framework/Frameworks; 19 INSTALL_PATH[sdk=macosx*] = $(INSTALL_PATH_USE_OVERRIDE_FRAMEWORKS_DIR_$(WK_USE_OVERRIDE_FRAMEWORKS_DIR)); 20 INSTALL_PATH_USE_OVERRIDE_FRAMEWORKS_DIR_NO = $(NORMAL_WEBCORE_FRAMEWORKS_DIR)/WebCore.framework/Versions/A/Frameworks; 21 INSTALL_PATH_USE_OVERRIDE_FRAMEWORKS_DIR_YES = $(WK_OVERRIDE_FRAMEWORKS_DIR); 22 23 DYLIB_INSTALL_NAME_BASE[sdk=macosx*] = $(DYLIB_INSTALL_NAME_BASE_USE_OVERRIDE_FRAMEWORKS_DIR_$(WK_USE_OVERRIDE_FRAMEWORKS_DIR)); 24 DYLIB_INSTALL_NAME_BASE_USE_OVERRIDE_FRAMEWORKS_DIR_NO = $(DYLIB_INSTALL_NAME_BASE_WK_RELOCATABLE_FRAMEWORKS_$(WK_RELOCATABLE_FRAMEWORKS)); 25 DYLIB_INSTALL_NAME_BASE_USE_OVERRIDE_FRAMEWORKS_DIR_YES = @loader_path/../../../; 26 DYLIB_INSTALL_NAME_BASE_WK_RELOCATABLE_FRAMEWORKS_ = $(DYLIB_INSTALL_NAME_BASE); 27 DYLIB_INSTALL_NAME_BASE_WK_RELOCATABLE_FRAMEWORKS_YES = @loader_path/../../../; 28 29 HEADER_SEARCH_PATHS = include src src/common/third_party/numerics third_party/base src/common/third_party/base; 30 31 ANGLE_HEADERS_FOLDER_PATH = /usr/local/include/ANGLE; 32 33 PUBLIC_HEADERS_FOLDER_PATH = $(ANGLE_HEADERS_FOLDER_PATH); 34 PUBLIC_HEADERS_FOLDER_PATH[sdk=macosx*] = $(PUBLIC_HEADERS_FOLDER_PATH_$(WK_PLATFORM_NAME)); 35 PUBLIC_HEADERS_FOLDER_PATH_macosx = $(ANGLE_HEADERS_FOLDER_PATH); 36 PUBLIC_HEADERS_FOLDER_PATH_maccatalyst = $(WK_ALTERNATE_FRAMEWORKS_DIR)/$(ANGLE_HEADERS_FOLDER_PATH); 37 38 USE_HEADERMAP = NO; 39 40 GCC_PREPROCESSOR_DEFINITIONS = LIBGLESV2_IMPLEMENTATION LIBANGLE_IMPLEMENTATION ANGLE_ENABLE_OPENGL ANGLE_ENABLE_GLSL ANGLE_ENABLE_ESSL GL_SILENCE_DEPRECATION; 41 42 INSTALLHDRS_SCRIPT_PHASE = YES; 4 PRODUCT_NAME = ANGLE; 43 5 44 6 APPLY_RULES_IN_COPY_HEADERS = $(USE_NEW_BUILD_SYSTEM); 7 CLANG_WARN_BOOL_CONVERSION = YES; 8 CLANG_WARN_ENUM_CONVERSION = YES; 9 CLANG_WARN_INT_CONVERSION = YES; 10 COMBINE_HIDPI_IMAGES = NO; 11 ENABLE_STRICT_OBJC_MSGSEND = YES; 12 HEADER_SEARCH_PATHS = include src src/common/third_party/numerics; 13 INSTALL_PATH = $(ANGLE_INSTALL_PATH_PREFIX)/usr/local/lib; 14 PUBLIC_HEADERS_FOLDER_PATH = $(ANGLE_INSTALL_PATH_PREFIX)/usr/local/include/ANGLE; -
trunk/Source/ThirdParty/ANGLE/Configurations/Base.xcconfig
r253824 r254551 1 1 #include? "../../../../../Internal/Configurations/HaveInternalSDK.xcconfig" 2 #include? "<DEVELOPER_DIR>/AppleInternal/XcodeConfig/PlatformSupport.xcconfig"3 2 #include "SDKVariant.xcconfig" 4 #include "WebKitTargetConditionals.xcconfig"5 3 6 4 CODE_SIGN_IDENTITY = -; 7 8 SDKROOT = macosx.internal;9 5 10 6 USE_INTERNAL_SDK = $(USE_INTERNAL_SDK_$(CONFIGURATION)); … … 15 11 ALWAYS_SEARCH_USER_PATHS = NO; 16 12 17 CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;18 13 CLANG_CXX_LANGUAGE_STANDARD = gnu++1z; 19 14 CLANG_CXX_LIBRARY = libc++; 20 CLANG_ENABLE_OBJC_ARC = YES;21 15 CLANG_ENABLE_OBJC_WEAK = YES; 22 16 CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; … … 24 18 CLANG_WARN_COMMA = YES; 25 19 CLANG_WARN_CONSTANT_CONVERSION = YES; 26 CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;27 20 CLANG_WARN_EMPTY_BODY = YES; 28 21 CLANG_WARN_ENUM_CONVERSION = YES; … … 30 23 CLANG_WARN_INT_CONVERSION = YES; 31 24 CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 32 CLANG_WARN_ OBJC_IMPLICIT_RETAIN_SELF= YES;25 CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 33 26 CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 34 27 CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 28 CLANG_WARN_SUSPICIOUS_MOVE = YES; 35 29 CLANG_WARN_STRICT_PROTOTYPES = YES; 36 CLANG_WARN_SUSPICIOUS_MOVE = YES;37 30 CLANG_WARN_UNREACHABLE_CODE = YES; 38 31 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 32 DEAD_CODE_STRIPPING = YES; 33 DEBUG_INFORMATION_FORMAT = dwarf-with-dsym; 39 34 GCC_C_LANGUAGE_STANDARD = gnu99; 40 35 GCC_DEBUGGING_SYMBOLS = default; … … 42 37 GCC_ENABLE_CPP_RTTI = NO; 43 38 GCC_ENABLE_OBJC_EXCEPTIONS = YES; 39 ENABLE_STRICT_OBJC_MSGSEND = YES; 44 40 GCC_ENABLE_SYMBOL_SEPARATION = NO; 45 41 GCC_FAST_OBJC_DISPATCH = YES; … … 50 46 GCC_PRECOMPILE_PREFIX_HEADER = NO; 51 47 GCC_SYMBOLS_PRIVATE_EXTERN = YES; 52 GCC_SYMBOLS_PRIVATE_EXTERN = YES;53 48 GCC_THREADSAFE_STATICS = NO; 54 49 GCC_TREAT_WARNINGS_AS_ERRORS = YES; … … 56 51 GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 57 52 GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO; 58 GCC_WARN_ABOUT_MISSING_NEWLINE = NO;53 GCC_WARN_ABOUT_MISSING_NEWLINE = YES; 59 54 GCC_WARN_ABOUT_RETURN_TYPE = YES; 60 55 GCC_WARN_UNDECLARED_SELECTOR = YES; 56 CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 57 CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 61 58 GCC_WARN_UNINITIALIZED_AUTOS = YES; 62 59 GCC_WARN_UNUSED_FUNCTION = YES; 63 60 GCC_WARN_UNUSED_VARIABLE = YES; 64 65 DEAD_CODE_STRIPPING = YES;66 DEBUG_INFORMATION_FORMAT = dwarf-with-dsym;67 ENABLE_STRICT_OBJC_MSGSEND = YES;68 69 61 PREBINDING = NO; 70 62 STRIP_INSTALLED_PRODUCT = NO; 71 WARNING_CFLAGS = -Wglobal-constructors -Wno- inconsistent-missing-override;63 WARNING_CFLAGS = -Wglobal-constructors -Wno-newline-eof -Wno-inconsistent-missing-override; 72 64 73 65 SUPPORTED_PLATFORMS = iphoneos iphonesimulator macosx appletvos appletvsimulator watchos watchsimulator; … … 81 73 OTHER_CFLAGS = $(ASAN_OTHER_CFLAGS); 82 74 OTHER_CPLUSPLUSFLAGS = $(ASAN_OTHER_CPLUSPLUSFLAGS); 83 OTHER_LDFLAGS = $(ASAN_OTHER_LDFLAGS) $(ANGLE_OTHER_LDFLAGS);75 OTHER_LDFLAGS = $(ASAN_OTHER_LDFLAGS); 84 76 85 77 ANGLE_INSTALL_PATH_PREFIX = $(ANGLE_INSTALL_PATH_PREFIX_DEPLOYMENT_$(DEPLOYMENT_LOCATION)); 86 78 ANGLE_INSTALL_PATH_PREFIX_DEPLOYMENT_YES = $(ANGLE_INSTALL_PATH_PREFIX_DEPLOYMENT_YES_USE_ALTERNATE_$(WK_USE_ALTERNATE_FRAMEWORKS_DIR)); 87 ANGLE_INSTALL_PATH_PREFIX_DEPLOYMENT_YES_USE_ALTERNATE_YES = $(WK_ALTERNATE_FRAMEWORKS_DIR); 88 89 NORMAL_WEBCORE_FRAMEWORKS_DIR = $(SYSTEM_LIBRARY_DIR)/PrivateFrameworks; 90 NORMAL_WEBCORE_FRAMEWORKS_DIR[sdk=macosx*] = $(NORMAL_WEBCORE_FRAMEWORKS_DIR_$(WK_PLATFORM_NAME)); 91 NORMAL_WEBCORE_FRAMEWORKS_DIR_macosx = $(SYSTEM_LIBRARY_DIR)/Frameworks/WebKit.framework/Versions/A/Frameworks; 92 NORMAL_WEBCORE_FRAMEWORKS_DIR_maccatalyst = $(WK_ALTERNATE_FRAMEWORKS_DIR)/$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks; 93 94 WK_USE_OVERRIDE_FRAMEWORKS_DIR = $(WK_NOT_$(WK_EMPTY_$(WK_OVERRIDE_FRAMEWORKS_DIR))); 95 96 WK_OVERRIDE_FRAMEWORKS_DIR = $(WK_OVERRIDE_FRAMEWORKS_DIR_USE_STAGING_INSTALL_PATH_$(USE_STAGING_INSTALL_PATH)); 97 WK_OVERRIDE_FRAMEWORKS_DIR_USE_STAGING_INSTALL_PATH_YES = $(WK_INSTALL_PATH_PREFIX)$(SYSTEM_LIBRARY_DIR)/StagedFrameworks/Safari; 98 99 WK_INSTALL_PATH_PREFIX = $(WK_INSTALL_PATH_PREFIX_DEPLOYMENT_$(DEPLOYMENT_LOCATION)$(WK_MACOS_1015)_USE_STAGING_INSTALL_PATH_$(USE_STAGING_INSTALL_PATH)); 100 WK_INSTALL_PATH_PREFIX_DEPLOYMENT_YES_MACOS_SINCE_1015_USE_STAGING_INSTALL_PATH_YES = $(PLATFORM_OOB_SYSTEM_CONTENT_DIR); 79 ANGLE_INSTALL_PATH_PREFIX_DEPLOYMENT_YES_USE_ALTERNATE_YES = $(WK_ALTERNATE_FRAMEWORKS_DIR)/; 101 80 102 81 // Disable on all platforms other than macOS, due to <rdar://problem/49013399>. -
trunk/Source/ThirdParty/ANGLE/Configurations/DebugRelease.xcconfig
r253824 r254551 21 21 SDKROOT_YES = macosx.internal; 22 22 23 WK_RELOCATABLE_FRAMEWORKS = YES;24 25 23 WK_DEFAULT_LTO_MODE = $(WK_USER_LTO_MODE_none); 26 24 -
trunk/Source/ThirdParty/ANGLE/include/CMakeLists.txt
r253824 r254551 17 17 18 18 set(glslang_headers 19 export.h20 19 GLSLANG/ShaderLang.h 21 20 GLSLANG/ShaderVars.h -
trunk/Source/ThirdParty/ANGLE/include/GLSLANG/ShaderLang.h
r253824 r254551 526 526 // If the function succeeds, the return value is true, else false. 527 527 // 528 ANGLE_EXPORTbool Initialize();528 bool Initialize(); 529 529 // 530 530 // Driver should call this at shutdown. 531 531 // If the function succeeds, the return value is true, else false. 532 532 // 533 ANGLE_EXPORTbool Finalize();533 bool Finalize(); 534 534 535 535 // … … 538 538 // resources: The object to initialize. Will be comparable with memcmp. 539 539 // 540 ANGLE_EXPORTvoid InitBuiltInResources(ShBuiltInResources *resources);540 void InitBuiltInResources(ShBuiltInResources *resources); 541 541 542 542 // … … 545 545 // Parameters: 546 546 // handle: Specifies the handle of the compiler to be used. 547 ANGLE_EXPORTconst std::string &GetBuiltInResourcesString(const ShHandle handle);547 const std::string &GetBuiltInResourcesString(const ShHandle handle); 548 548 549 549 // … … 558 558 // be supported in some configurations. 559 559 // resources: Specifies the built-in resources. 560 ANGLE_EXPORTShHandle ConstructCompiler(sh::GLenum type,561 ShShaderSpec spec,562 ShShaderOutput output,563 const ShBuiltInResources *resources);564 ANGLE_EXPORTvoid Destruct(ShHandle handle);560 ShHandle ConstructCompiler(sh::GLenum type, 561 ShShaderSpec spec, 562 ShShaderOutput output, 563 const ShBuiltInResources *resources); 564 void Destruct(ShHandle handle); 565 565 566 566 // … … 588 588 // Can be queried by calling ShGetVariableInfo(). 589 589 // 590 ANGLE_EXPORTbool Compile(const ShHandle handle,590 bool Compile(const ShHandle handle, 591 591 const char *const shaderStrings[], 592 592 size_t numStrings, … … 594 594 595 595 // Clears the results from the previous compilation. 596 ANGLE_EXPORTvoid ClearResults(const ShHandle handle);596 void ClearResults(const ShHandle handle); 597 597 598 598 // Return the version of the shader language. 599 ANGLE_EXPORTint GetShaderVersion(const ShHandle handle);599 int GetShaderVersion(const ShHandle handle); 600 600 601 601 // Return the currently set language output type. 602 ANGLE_EXPORTShShaderOutput GetShaderOutputType(const ShHandle handle);602 ShShaderOutput GetShaderOutputType(const ShHandle handle); 603 603 604 604 // Returns null-terminated information log for a compiled shader. 605 605 // Parameters: 606 606 // handle: Specifies the compiler 607 ANGLE_EXPORTconst std::string &GetInfoLog(const ShHandle handle);607 const std::string &GetInfoLog(const ShHandle handle); 608 608 609 609 // Returns null-terminated object code for a compiled shader. 610 610 // Parameters: 611 611 // handle: Specifies the compiler 612 ANGLE_EXPORTconst std::string &GetObjectCode(const ShHandle handle);612 const std::string &GetObjectCode(const ShHandle handle); 613 613 614 614 // Returns a (original_name, hash) map containing all the user defined names in the shader, … … 616 616 // Parameters: 617 617 // handle: Specifies the compiler 618 ANGLE_EXPORTconst std::map<std::string, std::string> *GetNameHashingMap(const ShHandle handle);618 const std::map<std::string, std::string> *GetNameHashingMap(const ShHandle handle); 619 619 620 620 // Shader variable inspection. … … 624 624 // Parameters: 625 625 // handle: Specifies the compiler 626 ANGLE_EXPORTconst std::vector<sh::ShaderVariable> *GetUniforms(const ShHandle handle);627 ANGLE_EXPORTconst std::vector<sh::ShaderVariable> *GetVaryings(const ShHandle handle);628 ANGLE_EXPORTconst std::vector<sh::ShaderVariable> *GetInputVaryings(const ShHandle handle);629 ANGLE_EXPORTconst std::vector<sh::ShaderVariable> *GetOutputVaryings(const ShHandle handle);630 ANGLE_EXPORTconst std::vector<sh::ShaderVariable> *GetAttributes(const ShHandle handle);631 ANGLE_EXPORTconst std::vector<sh::ShaderVariable> *GetOutputVariables(const ShHandle handle);632 ANGLE_EXPORTconst std::vector<sh::InterfaceBlock> *GetInterfaceBlocks(const ShHandle handle);633 ANGLE_EXPORTconst std::vector<sh::InterfaceBlock> *GetUniformBlocks(const ShHandle handle);634 ANGLE_EXPORTconst std::vector<sh::InterfaceBlock> *GetShaderStorageBlocks(const ShHandle handle);635 ANGLE_EXPORTsh::WorkGroupSize GetComputeShaderLocalGroupSize(const ShHandle handle);626 const std::vector<sh::ShaderVariable> *GetUniforms(const ShHandle handle); 627 const std::vector<sh::ShaderVariable> *GetVaryings(const ShHandle handle); 628 const std::vector<sh::ShaderVariable> *GetInputVaryings(const ShHandle handle); 629 const std::vector<sh::ShaderVariable> *GetOutputVaryings(const ShHandle handle); 630 const std::vector<sh::ShaderVariable> *GetAttributes(const ShHandle handle); 631 const std::vector<sh::ShaderVariable> *GetOutputVariables(const ShHandle handle); 632 const std::vector<sh::InterfaceBlock> *GetInterfaceBlocks(const ShHandle handle); 633 const std::vector<sh::InterfaceBlock> *GetUniformBlocks(const ShHandle handle); 634 const std::vector<sh::InterfaceBlock> *GetShaderStorageBlocks(const ShHandle handle); 635 sh::WorkGroupSize GetComputeShaderLocalGroupSize(const ShHandle handle); 636 636 // Returns the number of views specified through the num_views layout qualifier. If num_views is 637 637 // not set, the function returns -1. 638 ANGLE_EXPORTint GetVertexShaderNumViews(const ShHandle handle);638 int GetVertexShaderNumViews(const ShHandle handle); 639 639 640 640 // Returns true if the passed in variables pack in maxVectors followingthe packing rules from the … … 645 645 // maxVectors: the available rows of registers. 646 646 // variables: an array of variables. 647 ANGLE_EXPORTbool CheckVariablesWithinPackingLimits(int maxVectors,648 const std::vector<sh::ShaderVariable> &variables);647 bool CheckVariablesWithinPackingLimits(int maxVectors, 648 const std::vector<sh::ShaderVariable> &variables); 649 649 650 650 // Gives the compiler-assigned register for a shader storage block. … … 655 655 // shaderStorageBlockName: Specifies the shader storage block 656 656 // indexOut: output variable that stores the assigned register 657 ANGLE_EXPORTbool GetShaderStorageBlockRegister(const ShHandle handle,658 const std::string &shaderStorageBlockName,659 unsigned int *indexOut);657 bool GetShaderStorageBlockRegister(const ShHandle handle, 658 const std::string &shaderStorageBlockName, 659 unsigned int *indexOut); 660 660 661 661 // Gives the compiler-assigned register for a uniform block. … … 666 666 // uniformBlockName: Specifies the uniform block 667 667 // indexOut: output variable that stores the assigned register 668 ANGLE_EXPORTbool GetUniformBlockRegister(const ShHandle handle,669 const std::string &uniformBlockName,670 unsigned int *indexOut);668 bool GetUniformBlockRegister(const ShHandle handle, 669 const std::string &uniformBlockName, 670 unsigned int *indexOut); 671 671 672 672 // Gives a map from uniform names to compiler-assigned registers in the default uniform block. 673 673 // Note that the map contains also registers of samplers that have been extracted from structs. 674 ANGLE_EXPORTconst std::map<std::string, unsigned int> *GetUniformRegisterMap(const ShHandle handle);674 const std::map<std::string, unsigned int> *GetUniformRegisterMap(const ShHandle handle); 675 675 676 676 // Sampler, image and atomic counters share registers(t type and u type), -
trunk/Source/ThirdParty/ANGLE/include/GLSLANG/ShaderVars.h
r253824 r254551 11 11 #define GLSLANG_SHADERVARS_H_ 12 12 13 #include "export.h"14 15 13 #include <algorithm> 16 14 #include <array> … … 65 63 struct ShaderVariable 66 64 { 67 ANGLE_EXPORTShaderVariable();65 ShaderVariable(); 68 66 ShaderVariable(GLenum typeIn); 69 67 ShaderVariable(GLenum typeIn, unsigned int arraySizeIn); 70 ANGLE_EXPORT~ShaderVariable();71 ANGLE_EXPORTShaderVariable(const ShaderVariable &other);72 ANGLE_EXPORTShaderVariable &operator=(const ShaderVariable &other);68 ~ShaderVariable(); 69 ShaderVariable(const ShaderVariable &other); 70 ShaderVariable &operator=(const ShaderVariable &other); 73 71 bool operator==(const ShaderVariable &other) const; 74 72 bool operator!=(const ShaderVariable &other) const { return !operator==(other); } -
trunk/Source/ThirdParty/ANGLE/src/libANGLE/renderer/gl/cgl/DisplayCGL.mm
r253824 r254551 293 293 bool DisplayCGL::isValidNativeWindow(EGLNativeWindowType window) const 294 294 { 295 NSObject *layer = (__bridge NSObject *)window;295 NSObject *layer = reinterpret_cast<NSObject *>(window); 296 296 return [layer isKindOfClass:[CALayer class]]; 297 297 } -
trunk/Source/ThirdParty/ANGLE/src/libANGLE/renderer/gl/cgl/WindowSurfaceCGL.mm
r253824 r254551 154 154 mSwapLayer(nil), 155 155 mCurrentSwapId(0), 156 mLayer( (__bridge CALayer *)layer),156 mLayer(reinterpret_cast<CALayer *>(layer)), 157 157 mContext(context), 158 158 mFunctions(renderer->getFunctions()), … … 176 176 { 177 177 [mSwapLayer removeFromSuperlayer]; 178 [mSwapLayer release]; 178 179 mSwapLayer = nil; 179 180 } -
trunk/Source/ThirdParty/ANGLE/src/libANGLE/renderer/gl/eagl/DisplayEAGL.mm
r254036 r254551 130 130 { 131 131 [EAGLContext setCurrentContext:nil]; 132 [mContext release]; 132 133 mContext = nullptr; 133 134 } … … 260 261 bool DisplayEAGL::isValidNativeWindow(EGLNativeWindowType window) const 261 262 { 262 NSObject *layer = (__bridge NSObject *)window;263 NSObject *layer = reinterpret_cast<NSObject *>(window); 263 264 return [layer isKindOfClass:[CALayer class]]; 264 265 } … … 351 352 { 352 353 [EAGLContext setCurrentContext:nil]; 354 [mContext release]; 353 355 mContext = nullptr; 354 356 } -
trunk/Source/ThirdParty/ANGLE/src/libANGLE/renderer/gl/eagl/WindowSurfaceEAGL.mm
r253824 r254551 139 139 mSwapLayer(nil), 140 140 mCurrentSwapId(0), 141 mLayer( (__bridge CALayer *)layer),141 mLayer(reinterpret_cast<CALayer *>(layer)), 142 142 mContext(context), 143 143 mFunctions(renderer->getFunctions()), … … 161 161 { 162 162 [mSwapLayer removeFromSuperlayer]; 163 [mSwapLayer release]; 163 164 mSwapLayer = nil; 164 165 } -
trunk/Source/WebCore/ChangeLog
r254541 r254551 1 2020-01-14 Dean Jackson <dino@apple.com> 2 3 Build ANGLE as a dynamic library 4 https://bugs.webkit.org/show_bug.cgi?id=204708 5 rdar://57349384 6 7 Rolling this out for the 2nd time. 8 9 * Configurations/WebCore.xcconfig: 10 * Configurations/WebCoreTestSupport.xcconfig: 11 * WebCore.xcodeproj/project.pbxproj: 12 * platform/graphics/ANGLEWebKitBridge.cpp: 13 (WebCore::ANGLEWebKitBridge::ANGLEWebKitBridge): 14 (WebCore::ANGLEWebKitBridge::cleanupCompilers): 15 (WebCore::ANGLEWebKitBridge::compileShaderSource): 16 (WebCore::ANGLEWebKitBridge::angleAvailable): Deleted. 17 * platform/graphics/ANGLEWebKitBridge.h: 18 * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm: 19 (WebCore::GraphicsContextGLOpenGL::GraphicsContextGLOpenGL): 20 1 21 2020-01-14 Said Abou-Hallawa <sabouhallawa@apple.com> 2 22 -
trunk/Source/WebCore/Configurations/WebCore.xcconfig
r253824 r254551 40 40 SYSTEM_FRAMEWORK_SEARCH_PATHS = $(inherited) $(SDKROOT)$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks $(SDKROOT)$(SYSTEM_LIBRARY_DIR)/Frameworks 41 41 42 WK_ EMBEDDED_LIBRARY_DIR = $(WEBCORE_FRAMEWORKS_DIR)/WebCore.framework/Frameworks43 WK_ EMBEDDED_LIBRARY_DIR[sdk=macosx*] = $(WK_EMBEDDED_LIBRARY_DIR_USE_OVERRIDE_FRAMEWORKS_DIR_$(WK_USE_OVERRIDE_FRAMEWORKS_DIR));44 WK_ EMBEDDED_LIBRARY_DIR_USE_OVERRIDE_FRAMEWORKS_DIR_YES = $(WK_OVERRIDE_FRAMEWORKS_DIR);45 WK_ EMBEDDED_LIBRARY_DIR_USE_OVERRIDE_FRAMEWORKS_DIR_NO = $(WEBCORE_FRAMEWORKS_DIR)/WebCore.framework/Versions/A/Frameworks;42 WK_LIBWEBRTC_LIBRARY_DIR = $(WEBCORE_FRAMEWORKS_DIR)/WebCore.framework/Frameworks 43 WK_LIBWEBRTC_LIBRARY_DIR[sdk=macosx*] = $(WK_LIBWEBRTC_LIBRARY_DIR_USE_OVERRIDE_FRAMEWORKS_DIR_$(WK_USE_OVERRIDE_FRAMEWORKS_DIR)); 44 WK_LIBWEBRTC_LIBRARY_DIR_USE_OVERRIDE_FRAMEWORKS_DIR_NO = $(WEBCORE_FRAMEWORKS_DIR)/WebCore.framework/Versions/A/Frameworks; 45 WK_LIBWEBRTC_LIBRARY_DIR_USE_OVERRIDE_FRAMEWORKS_DIR_YES = $(WK_OVERRIDE_FRAMEWORKS_DIR); 46 46 47 LIBRARY_SEARCH_PATHS = $(inherited) "$(WK_ EMBEDDED_LIBRARY_DIR)";47 LIBRARY_SEARCH_PATHS = $(inherited) "$(WK_LIBWEBRTC_LIBRARY_DIR)"; 48 48 49 49 WEBKITADDITIONS_HEADER_SEARCH_PATHS = $(BUILT_PRODUCTS_DIR)/usr/local/include/WebKitAdditions $(SDKROOT)/usr/local/include/WebKitAdditions; … … 96 96 WK_IOSURFACE_ACCELERATOR_LDFLAGS_appletvos = $(WK_IOSURFACE_ACCELERATOR_LDFLAGS_iphoneos); 97 97 98 WK_ANGLE_LDFLAGS = -weak-lANGLE-shared;99 100 98 WK_LIBWEBRTC_LDFLAGS = $(WK_LIBWEBRTC_LDFLAGS_$(ENABLE_WEB_RTC)); 101 99 WK_LIBWEBRTC_LDFLAGS_ENABLE_WEB_RTC = -framework VideoToolbox -framework CoreMedia -weak-lwebrtc; … … 128 126 129 127 // FIXME: Reduce the number of allowable_clients <rdar://problem/31823969> 130 OTHER_LDFLAGS = $(inherited) $(WK_RELOCATABLE_FRAMEWORK_LDFLAGS) $(WK_UNDEFINED_SYMBOLS_LDFLAGS) -lsqlite3 -lobjc - allowable_client WebCoreTestSupport -allowable_client WebKitLegacy -force_load $(BUILT_PRODUCTS_DIR)/libPAL.a -framework CFNetwork -framework CoreAudio -framework CoreGraphics -framework CoreText -framework Foundation -framework IOSurface -framework ImageIO -framework Metal $(OTHER_LDFLAGS_PLATFORM_$(WK_COCOA_TOUCH)) $(OTHER_LDFLAGS_PLATFORM_$(WK_PLATFORM_NAME)) $(WK_APPKIT_LDFLAGS) $(WK_APPSUPPORT_LDFLAGS) $(WK_AUDIO_UNIT_LDFLAGS) $(WK_CARBON_LDFLAGS) $(WK_CORE_UI_LDFLAGS) $(WK_DATA_DETECTORS_CORE_LDFLAGS) $(WK_GRAPHICS_SERVICES_LDFLAGS) $(WK_IOSURFACE_ACCELERATOR_LDFLAGS) $(WK_ANGLE_LDFLAGS) $(WK_LIBWEBRTC_LDFLAGS) $(WK_MOBILE_CORE_SERVICES_LDFLAGS) $(WK_MOBILE_GESTALT_LDFLAGS) $(WK_OPENGL_LDFLAGS) $(WK_SYSTEM_CONFIGURATION_LDFLAGS) $(WK_SYSTEM_PREVIEW_LDFLAGS) $(WK_URL_FORMATTING_LDFLAGS);128 OTHER_LDFLAGS = $(inherited) $(WK_RELOCATABLE_FRAMEWORK_LDFLAGS) $(WK_UNDEFINED_SYMBOLS_LDFLAGS) -lsqlite3 -lobjc -lANGLE -allowable_client WebCoreTestSupport -allowable_client WebKitLegacy -force_load $(BUILT_PRODUCTS_DIR)/libPAL.a -framework CFNetwork -framework CoreAudio -framework CoreGraphics -framework CoreText -framework Foundation -framework IOSurface -framework ImageIO -framework Metal $(OTHER_LDFLAGS_PLATFORM_$(WK_COCOA_TOUCH)) $(OTHER_LDFLAGS_PLATFORM_$(WK_PLATFORM_NAME)) $(WK_APPKIT_LDFLAGS) $(WK_APPSUPPORT_LDFLAGS) $(WK_AUDIO_UNIT_LDFLAGS) $(WK_CARBON_LDFLAGS) $(WK_CORE_UI_LDFLAGS) $(WK_DATA_DETECTORS_CORE_LDFLAGS) $(WK_GRAPHICS_SERVICES_LDFLAGS) $(WK_IOSURFACE_ACCELERATOR_LDFLAGS) $(WK_LIBWEBRTC_LDFLAGS) $(WK_MOBILE_CORE_SERVICES_LDFLAGS) $(WK_MOBILE_GESTALT_LDFLAGS) $(WK_OPENGL_LDFLAGS) $(WK_SYSTEM_CONFIGURATION_LDFLAGS) $(WK_SYSTEM_PREVIEW_LDFLAGS) $(WK_URL_FORMATTING_LDFLAGS); 131 129 132 130 OTHER_LDFLAGS_PLATFORM_cocoatouch = -allowable_client WebKit -allowable_client iTunesU -allowable_client Casablanca -allowable_client Remote -allowable_client TVBooks -allowable_client DumpRenderTree -allowable_client WebKitTestRunner -allowable_client TestWebKitAPI; … … 142 140 143 141 NORMAL_WEBCORE_FRAMEWORKS_DIR[sdk=iphone*] = $(PRODUCTION_FRAMEWORKS_DIR); 144 NORMAL_WEBCORE_FRAMEWORKS_DIR[sdk=macosx*] = $(NORMAL_WEBCORE_FRAMEWORKS_DIR_$(WK_PLATFORM_NAME)); 145 NORMAL_WEBCORE_FRAMEWORKS_DIR_macosx = $(SYSTEM_LIBRARY_DIR)/Frameworks/WebKit.framework/Versions/A/Frameworks; 146 NORMAL_WEBCORE_FRAMEWORKS_DIR_maccatalyst = $(WK_ALTERNATE_FRAMEWORKS_DIR)/$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks; 142 NORMAL_WEBCORE_FRAMEWORKS_DIR[sdk=macosx*] = $(SYSTEM_LIBRARY_DIR)/Frameworks/WebKit.framework/Versions/A/Frameworks; 147 143 148 144 WEBCORE_FRAMEWORKS_DIR = $(WEBCORE_FRAMEWORKS_DIR_USE_OVERRIDE_FRAMEWORKS_DIR_$(WK_USE_OVERRIDE_FRAMEWORKS_DIR)); -
trunk/Source/WebCore/Configurations/WebCoreTestSupport.xcconfig
r253824 r254551 49 49 DYLIB_INSTALL_NAME_BASE_Release = $(DYLIB_INSTALL_NAME_BASE_Debug); 50 50 51 ANGLE_LDFLAGS = -weak-lANGLE-shared;52 53 51 LIBWEBRTC_LDFLAGS = $(LIBWEBRTC_LDFLAGS_$(ENABLE_WEB_RTC)); 54 52 LIBWEBRTC_LDFLAGS_ = ; … … 59 57 EXPORTED_SYMBOLS_FILE = ; 60 58 GCC_SYMBOLS_PRIVATE_EXTERN = YES; 59 OTHER_LDFLAGS = $(ASAN_OTHER_LDFLAGS); 60 OTHER_LDFLAGS[sdk=macos*] = $(ASAN_OTHER_LDFLAGS) -framework AppKit $(LIBWEBRTC_LDFLAGS); 61 61 62 OTHER_LDFLAGS = $(ASAN_OTHER_LDFLAGS) $(ANGLE_LDFLAGS); 63 OTHER_LDFLAGS[sdk=macos*] = $(ASAN_OTHER_LDFLAGS) -framework AppKit $(LIBWEBRTC_LDFLAGS) $(ANGLE_LDFLAGS); 64 OTHER_LDFLAGS[sdk=iphoneos*] = $(ASAN_OTHER_LDFLAGS) -lAccessibility $(LIBWEBRTC_LDFLAGS) $(ANGLE_LDFLAGS); 65 OTHER_LDFLAGS[sdk=iphonesimulator*] = $(ASAN_OTHER_LDFLAGS) -lAccessibility $(LIBWEBRTC_LDFLAGS) $(ANGLE_LDFLAGS); 66 62 OTHER_LDFLAGS[sdk=iphoneos*] = $(ASAN_OTHER_LDFLAGS) -lAccessibility $(LIBWEBRTC_LDFLAGS); 63 OTHER_LDFLAGS[sdk=iphonesimulator*] = $(ASAN_OTHER_LDFLAGS) -lAccessibility $(LIBWEBRTC_LDFLAGS); 67 64 SECT_ORDER_FLAGS = ; -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r254446 r254551 33497 33497 runOnlyForDeploymentPostprocessing = 0; 33498 33498 shellPath = /bin/sh; 33499 shellScript = "if [[ ${WK_PLATFORM_NAME} != \"macosx\" && ${WK_PLATFORM_NAME} != \"maccatalyst\"]]; then\n exit 0\nfi\n\nif [[ ${WK_USE_OVERRIDE_FRAMEWORKS_DIR} == \"YES\" ]]; then\n exit 0\nfi\n\n# ENABLE_WEB_RTC cannot be relied on because of its conditionals.\nif [[ ${CONFIGURATION} == \"Production\" && ${TARGET_MAC_OS_X_VERSION_MAJOR} < 101300 ]]; then\n exit 0\nfi\n\nln -shf Versions/Current/Frameworks \"$TARGET_BUILD_DIR/WebCore.framework/Frameworks\"\n";33499 shellScript = "if [[ ${WK_PLATFORM_NAME} != \"macosx\" ]]; then\n exit 0\nfi\n\nif [[ ${WK_USE_OVERRIDE_FRAMEWORKS_DIR} == \"YES\" ]]; then\n exit 0\nfi\n\n# ENABLE_WEB_RTC cannot be relied on because of its conditionals.\nif [[ ${CONFIGURATION} == \"Production\" && ${TARGET_MAC_OS_X_VERSION_MAJOR} < 101300 ]]; then\n exit 0\nfi\n\nln -shf Versions/Current/Frameworks \"$TARGET_BUILD_DIR/WebCore.framework/Frameworks\"\n"; 33500 33500 }; 33501 33501 DD041FBD09D9DDBE0010AF2A /* Generate Derived Sources */ = { -
trunk/Source/WebCore/platform/graphics/ANGLEWebKitBridge.cpp
r254064 r254551 32 32 #include <wtf/StdLibExtras.h> 33 33 34 #if PLATFORM(COCOA)35 #include <wtf/darwin/WeakLinking.h>36 #endif37 38 34 namespace WebCore { 39 35 … … 136 132 , m_shaderSpec(shaderSpec) 137 133 { 138 ASSERT(angleAvailable());139 if (!angleAvailable())140 return;141 142 134 // This is a no-op if it's already initialized. 143 135 sh::Initialize(); … … 151 143 void ANGLEWebKitBridge::cleanupCompilers() 152 144 { 153 ASSERT(ANGLEWebKitBridge::angleAvailable());154 if (!ANGLEWebKitBridge::angleAvailable())155 return;156 157 145 if (m_fragmentCompiler) 158 146 sh::Destruct(m_fragmentCompiler); … … 175 163 bool ANGLEWebKitBridge::compileShaderSource(const char* shaderSource, ANGLEShaderType shaderType, String& translatedShaderSource, String& shaderValidationLog, Vector<std::pair<ANGLEShaderSymbolType, sh::ShaderVariable>>& symbols, uint64_t extraCompileOptions) 176 164 { 177 ASSERT(ANGLEWebKitBridge::angleAvailable());178 if (!ANGLEWebKitBridge::angleAvailable())179 return false;180 181 165 if (!builtCompilers) { 182 166 m_fragmentCompiler = sh::ConstructCompiler(GL_FRAGMENT_SHADER, m_shaderSpec, m_shaderOutput, &m_resources); … … 221 205 } 222 206 223 bool ANGLEWebKitBridge::angleAvailable()224 {225 #if PLATFORM(COCOA)226 return !isNullFunctionPointer(sh::Compile);227 #else228 return true;229 #endif230 }231 232 207 } 233 208 -
trunk/Source/WebCore/platform/graphics/ANGLEWebKitBridge.h
r254103 r254551 91 91 bool compileShaderSource(const char* shaderSource, ANGLEShaderType, String& translatedShaderSource, String& shaderValidationLog, Vector<std::pair<ANGLEShaderSymbolType, sh::ShaderVariable>>& symbols, uint64_t extraCompileOptions = 0); 92 92 93 static bool angleAvailable();94 95 93 private: 96 94 -
trunk/Source/WebCore/platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm
r254214 r254551 187 187 : GraphicsContextGL(attrs, destination, sharedContext) 188 188 { 189 ASSERT(ANGLEWebKitBridge::angleAvailable());190 if (!ANGLEWebKitBridge::angleAvailable())191 return;192 193 189 m_isForWebGL2 = attrs.isWebGL2; 194 190
Note:
See TracChangeset
for help on using the changeset viewer.