Changeset 211229 in webkit


Ignore:
Timestamp:
Jan 26, 2017 1:34:45 PM (7 years ago)
Author:
Chris Dumez
Message:

Fix WebGL diagnostic logging
https://bugs.webkit.org/show_bug.cgi?id=167463
<rdar://problem/30216981>

Reviewed by Alex Christensen.

Fix WebGL diagnostic logging so that it no longer uses logDiagnosticMessageWithValue().
This is because the value apparently needs to be numeric on Mac.

Source/WebCore:

  • html/canvas/WebGLRenderingContextBase.cpp:

(WebCore::WebGLRenderingContextBase::checkForContextLossHandling):

  • page/DiagnosticLoggingKeys.cpp:

(WebCore::DiagnosticLoggingKeys::pageHandlesWebGLContextLossKey):
(WebCore::WebCore::DiagnosticLoggingKeys::webGLStateKey):
(WebCore::DiagnosticLoggingKeys::stateKey): Deleted.
(WebCore::DiagnosticLoggingKeys::handlesContextLossKey): Deleted.
(WebCore::WebCore::DiagnosticLoggingKeys::webGLKey): Deleted.

  • page/DiagnosticLoggingKeys.h:

Source/WebKit2:

  • UIProcess/HighPerformanceGraphicsUsageSampler.cpp:

(WebKit::HighPerformanceGraphicsUsageSampler::timerFired):

Location:
trunk/Source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r211228 r211229  
     12017-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
    1222017-01-26  Zalan Bujtas  <zalan@apple.com>
    223
  • trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp

    r211151 r211229  
    502502
    503503    bool handlesContextLoss = canvas().hasEventListeners(eventNames().webglcontextlostEvent) && canvas().hasEventListeners(eventNames().webglcontextrestoredEvent);
    504     page->diagnosticLoggingClient().logDiagnosticMessageWithValue(DiagnosticLoggingKeys::webGLKey(), DiagnosticLoggingKeys::handlesContextLossKey(), handlesContextLoss ? DiagnosticLoggingKeys::yesKey() : DiagnosticLoggingKeys::noKey(), ShouldSample::No);
     504    page->diagnosticLoggingClient().logDiagnosticMessage(DiagnosticLoggingKeys::pageHandlesWebGLContextLossKey(), handlesContextLoss ? DiagnosticLoggingKeys::yesKey() : DiagnosticLoggingKeys::noKey(), ShouldSample::No);
    505505}
    506506
  • trunk/Source/WebCore/page/DiagnosticLoggingKeys.cpp

    r211151 r211229  
    5959}
    6060
     61String DiagnosticLoggingKeys::pageHandlesWebGLContextLossKey()
     62{
     63    return ASCIILiteral("pageHandlesWebGLContextLoss");
     64}
     65
    6166String DiagnosticLoggingKeys::postPageLoadKey()
    6267{
     
    484489}
    485490
    486 String DiagnosticLoggingKeys::stateKey()
    487 {
    488     return ASCIILiteral("state");
    489 }
    490 
    491491String DiagnosticLoggingKeys::streamingMedia()
    492492{
     
    659659}
    660660
    661 String DiagnosticLoggingKeys::handlesContextLossKey()
    662 {
    663     return ASCIILiteral("handlesContextLoss");
    664 }
    665 
    666661String DiagnosticLoggingKeys::prunedDueToMemoryPressureKey()
    667662{
     
    689684}
    690685
    691 String WebCore::DiagnosticLoggingKeys::webGLKey()
    692 {
    693     return ASCIILiteral("webGL");
     686String WebCore::DiagnosticLoggingKeys::webGLStateKey()
     687{
     688    return ASCIILiteral("webGLState");
    694689}
    695690
  • trunk/Source/WebCore/page/DiagnosticLoggingKeys.h

    r211151 r211229  
    5757    static String expiredKey();
    5858    static String fontKey();
    59     static String handlesContextLossKey();
    6059    static String hasPluginsKey();
    6160    static String httpsNoStoreKey();
     
    102101    static String pageContainsMediaEngineKey();
    103102    static String pageContainsPluginKey();
     103    static String pageHandlesWebGLContextLossKey();
    104104    static String pageLoadedKey();
    105105    static String playedKey();
     
    129129    static String scriptKey();
    130130    static String sourceKey();
    131     WEBCORE_EXPORT static String stateKey();
    132131    WEBCORE_EXPORT static String streamingMedia();
    133132    static String styleSheetKey();
     
    159158    WEBCORE_EXPORT static String wastedSpeculativeWarmupWithRevalidationKey();
    160159    WEBCORE_EXPORT static String wastedSpeculativeWarmupWithoutRevalidationKey();
    161     WEBCORE_EXPORT static String webGLKey();
     160    WEBCORE_EXPORT static String webGLStateKey();
    162161    WEBCORE_EXPORT static String webViewKey();
    163162    static String yesKey();
  • trunk/Source/WebKit2/ChangeLog

    r211227 r211229  
     12017-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
    1152017-01-26  Wenson Hsieh  <wenson_hsieh@apple.com>
    216
  • trunk/Source/WebKit2/UIProcess/HighPerformanceGraphicsUsageSampler.cpp

    r210753 r211229  
    7373        state = DiagnosticLoggingKeys::activeInBackgroundTabOnlyKey();
    7474
    75     firstPage->logDiagnosticMessageWithValue(DiagnosticLoggingKeys::webGLKey(), DiagnosticLoggingKeys::stateKey(), state, false);
     75    firstPage->logDiagnosticMessage(DiagnosticLoggingKeys::webGLStateKey(), state, false);
    7676}
    7777
Note: See TracChangeset for help on using the changeset viewer.