Changeset 199055 in webkit
- Timestamp:
- Apr 5, 2016 4:22:17 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r198897 r199055 1 2016-04-05 Antoine Quint <graouts@apple.com> 2 3 [WebGL2] Allow enabling WebGL2 with a runtime flag 4 https://bugs.webkit.org/show_bug.cgi?id=156166 5 <rdar://problem/25526929> 6 7 Removed the manual overrides of ENABLE_WEBGL2. 8 9 Reviewed by Dean Jackson. 10 11 * wtf/FeatureDefines.h: 12 1 13 2016-03-31 Konstantin Tokarev <annulen@yandex.ru> 2 14 -
trunk/Source/WTF/wtf/FeatureDefines.h
r198897 r199055 748 748 #endif 749 749 750 #if !defined(ENABLE_WEBGL2)751 #define ENABLE_WEBGL2 0752 #endif753 754 750 #if !defined(ENABLE_GRAPHICS_CONTEXT_3D) 755 751 #define ENABLE_GRAPHICS_CONTEXT_3D ENABLE_WEBGL -
trunk/Source/WebCore/ChangeLog
r199054 r199055 1 2016-04-05 Antoine Quint <graouts@apple.com> 2 3 [WebGL2] Allow enabling WebGL2 with a runtime flag 4 https://bugs.webkit.org/show_bug.cgi?id=156166 5 <rdar://problem/25526929> 6 7 Added new runtime flags for WebGL2. 8 9 Reviewed by Dean Jackson. 10 11 * bindings/generic/RuntimeEnabledFeatures.h: 12 (WebCore::RuntimeEnabledFeatures::setWebGL2Enabled): 13 (WebCore::RuntimeEnabledFeatures::webGL2Enabled): 14 1 15 2016-04-05 Antti Koivisto <antti@apple.com> 2 16 -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
r199007 r199055 218 218 #endif 219 219 220 #if ENABLE(WEBGL2) 221 void setWebGL2Enabled(bool isEnabled) { m_isWebGL2Enabled = isEnabled; } 222 bool webGL2Enabled() const { return m_isWebGL2Enabled; } 223 #endif 224 220 225 WEBCORE_EXPORT static RuntimeEnabledFeatures& sharedFeatures(); 221 226 … … 311 316 #endif 312 317 318 #if ENABLE(WEBGL2) 319 bool m_isWebGL2Enabled; 320 #endif 321 313 322 friend class WTF::NeverDestroyed<RuntimeEnabledFeatures>; 314 323 }; -
trunk/Source/WebKit/mac/ChangeLog
r198947 r199055 1 2016-04-05 Antoine Quint <graouts@apple.com> 2 3 [WebGL2] Allow enabling WebGL2 with a runtime flag 4 https://bugs.webkit.org/show_bug.cgi?id=156166 5 <rdar://problem/25526929> 6 7 Set the WebGL2 runtime flag based on preferences, disabled by default. 8 9 Reviewed by Dean Jackson. 10 11 * WebView/WebPreferenceKeysPrivate.h: 12 * WebView/WebPreferences.mm: 13 (+[WebPreferences initialize]): 14 (-[WebPreferences webGL2Enabled]): 15 (-[WebPreferences setWebGL2Enabled:]): 16 * WebView/WebPreferencesPrivate.h: 17 * WebView/WebView.mm: 18 (-[WebView _preferencesChanged:]): 19 1 20 2016-04-01 Alex Christensen <achristensen@webkit.org> 2 21 -
trunk/Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h
r198476 r199055 110 110 #define WebKitWebAudioEnabledPreferenceKey @"WebKitWebAudioEnabled" 111 111 #define WebKitWebGLEnabledPreferenceKey @"WebKitWebGLEnabled" 112 #define WebKitWebGL2EnabledPreferenceKey @"WebKitWebGL2Enabled" 112 113 #define WebKitForceSoftwareWebGLRenderingPreferenceKey @"WebKitForceSoftwareWebGLRendering" 113 114 #define WebKitAccelerated2dCanvasEnabledPreferenceKey @"WebKitAccelerated2dCanvasEnabled" -
trunk/Source/WebKit/mac/WebView/WebPreferences.mm
r198640 r199055 611 611 [NSNumber numberWithBool:NO], WebKitCustomElementsEnabledPreferenceKey, 612 612 #endif 613 #if ENABLE(WEBGL2) 614 [NSNumber numberWithBool:NO], WebKitWebGL2EnabledPreferenceKey, 615 #endif 613 616 nil]; 614 617 … … 1947 1950 { 1948 1951 [self _setBoolValue:enabled forKey:WebKitWebGLEnabledPreferenceKey]; 1952 } 1953 1954 - (BOOL)webGL2Enabled 1955 { 1956 return [self _boolValueForKey:WebKitWebGL2EnabledPreferenceKey]; 1957 } 1958 1959 - (void)setWebGL2Enabled:(BOOL)enabled 1960 { 1961 [self _setBoolValue:enabled forKey:WebKitWebGL2EnabledPreferenceKey]; 1949 1962 } 1950 1963 -
trunk/Source/WebKit/mac/WebView/WebPreferencesPrivate.h
r198476 r199055 237 237 - (void)setWebGLEnabled:(BOOL)enabled; 238 238 239 - (BOOL)webGL2Enabled; 240 - (void)setWebGL2Enabled:(BOOL)enabled; 241 239 242 - (BOOL)forceSoftwareWebGLRendering; 240 243 - (void)setForceSoftwareWebGLRendering:(BOOL)forced; -
trunk/Source/WebKit/mac/WebView/WebView.mm
r198604 r199055 2489 2489 #endif 2490 2490 2491 #if ENABLE(WEBGL2) 2492 RuntimeEnabledFeatures::sharedFeatures().setWebGL2Enabled([preferences webGL2Enabled]); 2493 #endif 2491 2494 2492 2495 NSTimeInterval timeout = [preferences incrementalRenderingSuppressionTimeoutInSeconds]; -
trunk/Source/WebKit2/ChangeLog
r199048 r199055 1 2016-04-05 Antoine Quint <graouts@apple.com> 2 3 [WebGL2] Allow enabling WebGL2 with a runtime flag 4 https://bugs.webkit.org/show_bug.cgi?id=156166 5 <rdar://problem/25526929> 6 7 Set the WebGL2 runtime flag based on preferences, disabled by default. 8 9 Reviewed by Dean Jackson. 10 11 * Shared/WebPreferencesDefinitions.h: 12 * UIProcess/API/C/WKPreferences.cpp: 13 (WKPreferencesSetWebGL2Enabled): 14 (WKPreferencesGetWebGL2Enabled): 15 * UIProcess/API/C/WKPreferencesRefPrivate.h: 16 * WebProcess/InjectedBundle/InjectedBundle.cpp: 17 (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): 18 * WebProcess/WebPage/WebPage.cpp: 19 (WebKit::WebPage::updatePreferences): 20 1 21 2016-04-04 Zan Dobersek <zdobersek@igalia.com> 2 22 -
trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h
r198476 r199055 228 228 macro(ShadowDOMEnabled, shadowDOMEnabled, Bool, bool, true) \ 229 229 macro(CustomElementsEnabled, customElementsEnabled, Bool, bool, false) \ 230 macro(WebGL2Enabled, webGL2Enabled, Bool, bool, false) \ 230 231 FOR_EACH_ADDITIONAL_WEBKIT_BOOL_PREFERENCE(macro) \ 231 232 \ -
trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp
r198476 r199055 460 460 } 461 461 462 void WKPreferencesSetWebGL2Enabled(WKPreferencesRef preferencesRef, bool flag) 463 { 464 toImpl(preferencesRef)->setWebGL2Enabled(flag); 465 } 466 467 bool WKPreferencesGetWebGL2Enabled(WKPreferencesRef preferencesRef) 468 { 469 return toImpl(preferencesRef)->webGL2Enabled(); 470 } 471 462 472 void WKPreferencesSetForceSoftwareWebGLRendering(WKPreferencesRef preferencesRef, bool flag) 463 473 { -
trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h
r198476 r199055 99 99 100 100 // Defaults to false. 101 WK_EXPORT void WKPreferencesSetWebGL2Enabled(WKPreferencesRef, bool); 102 WK_EXPORT bool WKPreferencesGetWebGL2Enabled(WKPreferencesRef); 103 104 // Defaults to false. 101 105 WK_EXPORT void WKPreferencesSetForceSoftwareWebGLRendering(WKPreferencesRef, bool); 102 106 WK_EXPORT bool WKPreferencesGetForceSoftwareWebGLRendering(WKPreferencesRef); -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
r198180 r199055 204 204 #endif 205 205 206 #if ENABLE(WEBGL2) 207 if (preference == "WebKitWebGL2Enabled") 208 RuntimeEnabledFeatures::sharedFeatures().setWebGL2Enabled(enabled); 209 #endif 210 206 211 // Map the names used in LayoutTests with the names used in WebCore::Settings and WebPreferencesStore. 207 212 #define FOR_EACH_OVERRIDE_BOOL_PREFERENCE(macro) \ -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r198939 r199055 3096 3096 #endif 3097 3097 3098 #if ENABLE(WEBGL2) 3099 RuntimeEnabledFeatures::sharedFeatures().setWebGL2Enabled(store.getBoolValueForKey(WebPreferencesKey::webGL2EnabledKey())); 3100 #endif 3101 3098 3102 bool processSuppressionEnabled = store.getBoolValueForKey(WebPreferencesKey::pageVisibilityBasedProcessSuppressionEnabledKey()); 3099 3103 if (m_processSuppressionEnabled != processSuppressionEnabled) { -
trunk/Tools/ChangeLog
r199036 r199055 1 2016-04-05 Antoine Quint <graouts@apple.com> 2 3 [WebGL2] Allow enabling WebGL2 with a runtime flag 4 https://bugs.webkit.org/show_bug.cgi?id=156166 5 <rdar://problem/25526929> 6 7 Always enable WebGL2 during testing. 8 9 Reviewed by Dean Jackson. 10 11 * DumpRenderTree/mac/DumpRenderTree.mm: 12 (resetWebPreferencesToConsistentValues): 13 * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: 14 (WTR::InjectedBundle::beginTesting): 15 * WebKitTestRunner/InjectedBundle/TestRunner.cpp: 16 (WTR::TestRunner::setWebGL2Enabled): 17 * WebKitTestRunner/InjectedBundle/TestRunner.h: 18 1 19 2016-04-04 Bill Ming <mbbill@gmail.com> 2 20 -
trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm
r198189 r199055 988 988 [preferences setCustomElementsEnabled:YES]; 989 989 990 [preferences setWebGL2Enabled:YES]; 991 990 992 [preferences setHiddenPageDOMTimerThrottlingEnabled:NO]; 991 993 [preferences setHiddenPageCSSAnimationSuspensionEnabled:NO]; -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp
r198955 r199055 314 314 m_testRunner->setCustomElementsEnabled(true); 315 315 316 m_testRunner->setWebGL2Enabled(true); 317 316 318 m_testRunner->setCloseRemainingWindowsWhenComplete(false); 317 319 m_testRunner->setAcceptsEditing(true); -
trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp
r198955 r199055 339 339 } 340 340 341 void TestRunner::setWebGL2Enabled(bool enabled) 342 { 343 WKRetainPtr<WKStringRef> key(AdoptWK, WKStringCreateWithUTF8CString("WebKitWebGL2Enabled")); 344 auto& injectedBundle = InjectedBundle::singleton(); 345 WKBundleOverrideBoolPreferenceForTestRunner(injectedBundle.bundle(), injectedBundle.pageGroup(), key.get(), enabled); 346 } 347 341 348 void TestRunner::setAllowUniversalAccessFromFileURLs(bool enabled) 342 349 { -
trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h
r198955 r199055 102 102 void setShadowDOMEnabled(bool); 103 103 void setCustomElementsEnabled(bool); 104 void setWebGL2Enabled(bool); 104 105 void setAllowUniversalAccessFromFileURLs(bool); 105 106 void setAllowFileAccessFromFileURLs(bool);
Note: See TracChangeset
for help on using the changeset viewer.