Changeset 211229 in webkit
- Timestamp:
- Jan 26, 2017 1:34:45 PM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r211228 r211229 1 2017-01-26 Chris Dumez <cdumez@apple.com> 2 3 Fix WebGL diagnostic logging 4 https://bugs.webkit.org/show_bug.cgi?id=167463 5 <rdar://problem/30216981> 6 7 Reviewed by Alex Christensen. 8 9 Fix WebGL diagnostic logging so that it no longer uses logDiagnosticMessageWithValue(). 10 This is because the value apparently needs to be numeric on Mac. 11 12 * html/canvas/WebGLRenderingContextBase.cpp: 13 (WebCore::WebGLRenderingContextBase::checkForContextLossHandling): 14 * page/DiagnosticLoggingKeys.cpp: 15 (WebCore::DiagnosticLoggingKeys::pageHandlesWebGLContextLossKey): 16 (WebCore::WebCore::DiagnosticLoggingKeys::webGLStateKey): 17 (WebCore::DiagnosticLoggingKeys::stateKey): Deleted. 18 (WebCore::DiagnosticLoggingKeys::handlesContextLossKey): Deleted. 19 (WebCore::WebCore::DiagnosticLoggingKeys::webGLKey): Deleted. 20 * page/DiagnosticLoggingKeys.h: 21 1 22 2017-01-26 Zalan Bujtas <zalan@apple.com> 2 23 -
trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
r211151 r211229 502 502 503 503 bool handlesContextLoss = canvas().hasEventListeners(eventNames().webglcontextlostEvent) && canvas().hasEventListeners(eventNames().webglcontextrestoredEvent); 504 page->diagnosticLoggingClient().logDiagnosticMessage WithValue(DiagnosticLoggingKeys::webGLKey(), DiagnosticLoggingKeys::handlesContextLossKey(), handlesContextLoss ? DiagnosticLoggingKeys::yesKey() : DiagnosticLoggingKeys::noKey(), ShouldSample::No);504 page->diagnosticLoggingClient().logDiagnosticMessage(DiagnosticLoggingKeys::pageHandlesWebGLContextLossKey(), handlesContextLoss ? DiagnosticLoggingKeys::yesKey() : DiagnosticLoggingKeys::noKey(), ShouldSample::No); 505 505 } 506 506 -
trunk/Source/WebCore/page/DiagnosticLoggingKeys.cpp
r211151 r211229 59 59 } 60 60 61 String DiagnosticLoggingKeys::pageHandlesWebGLContextLossKey() 62 { 63 return ASCIILiteral("pageHandlesWebGLContextLoss"); 64 } 65 61 66 String DiagnosticLoggingKeys::postPageLoadKey() 62 67 { … … 484 489 } 485 490 486 String DiagnosticLoggingKeys::stateKey()487 {488 return ASCIILiteral("state");489 }490 491 491 String DiagnosticLoggingKeys::streamingMedia() 492 492 { … … 659 659 } 660 660 661 String DiagnosticLoggingKeys::handlesContextLossKey()662 {663 return ASCIILiteral("handlesContextLoss");664 }665 666 661 String DiagnosticLoggingKeys::prunedDueToMemoryPressureKey() 667 662 { … … 689 684 } 690 685 691 String WebCore::DiagnosticLoggingKeys::webGL Key()692 { 693 return ASCIILiteral("webGL ");686 String WebCore::DiagnosticLoggingKeys::webGLStateKey() 687 { 688 return ASCIILiteral("webGLState"); 694 689 } 695 690 -
trunk/Source/WebCore/page/DiagnosticLoggingKeys.h
r211151 r211229 57 57 static String expiredKey(); 58 58 static String fontKey(); 59 static String handlesContextLossKey();60 59 static String hasPluginsKey(); 61 60 static String httpsNoStoreKey(); … … 102 101 static String pageContainsMediaEngineKey(); 103 102 static String pageContainsPluginKey(); 103 static String pageHandlesWebGLContextLossKey(); 104 104 static String pageLoadedKey(); 105 105 static String playedKey(); … … 129 129 static String scriptKey(); 130 130 static String sourceKey(); 131 WEBCORE_EXPORT static String stateKey();132 131 WEBCORE_EXPORT static String streamingMedia(); 133 132 static String styleSheetKey(); … … 159 158 WEBCORE_EXPORT static String wastedSpeculativeWarmupWithRevalidationKey(); 160 159 WEBCORE_EXPORT static String wastedSpeculativeWarmupWithoutRevalidationKey(); 161 WEBCORE_EXPORT static String webGL Key();160 WEBCORE_EXPORT static String webGLStateKey(); 162 161 WEBCORE_EXPORT static String webViewKey(); 163 162 static String yesKey(); -
trunk/Source/WebKit2/ChangeLog
r211227 r211229 1 2017-01-26 Chris Dumez <cdumez@apple.com> 2 3 Fix WebGL diagnostic logging 4 https://bugs.webkit.org/show_bug.cgi?id=167463 5 <rdar://problem/30216981> 6 7 Reviewed by Alex Christensen. 8 9 Fix WebGL diagnostic logging so that it no longer uses logDiagnosticMessageWithValue(). 10 This is because the value apparently needs to be numeric on Mac. 11 12 * UIProcess/HighPerformanceGraphicsUsageSampler.cpp: 13 (WebKit::HighPerformanceGraphicsUsageSampler::timerFired): 14 1 15 2017-01-26 Wenson Hsieh <wenson_hsieh@apple.com> 2 16 -
trunk/Source/WebKit2/UIProcess/HighPerformanceGraphicsUsageSampler.cpp
r210753 r211229 73 73 state = DiagnosticLoggingKeys::activeInBackgroundTabOnlyKey(); 74 74 75 firstPage->logDiagnosticMessage WithValue(DiagnosticLoggingKeys::webGLKey(), DiagnosticLoggingKeys::stateKey(), state, false);75 firstPage->logDiagnosticMessage(DiagnosticLoggingKeys::webGLStateKey(), state, false); 76 76 } 77 77
Note: See TracChangeset
for help on using the changeset viewer.