Changeset 206120 in webkit


Ignore:
Timestamp:
Sep 19, 2016 2:59:28 PM (8 years ago)
Author:
Keith Rollin
Message:

REGRESSION (r205275): LOG_WITH_STREAM() macros are all compiled in release builds now
https://bugs.webkit.org/show_bug.cgi?id=162180

Reviewed by Simon Fraser.

Disable LOG_WITH_STREAM in release mode. Along with this, remove a
local variable in GraphcsContextCG.cpp in release mode that's no
longer referenced. And adjust logFunctionResult so that it gets
defined only in debug mode, too, to match its declaration in
LogMacros.h.

No new tests -- there are no tests for logging.

  • platform/LogMacros.h:
  • platform/Logging.cpp:
  • platform/graphics/cg/GraphicsContextCG.cpp:

(WebCore::GraphicsContext::drawNativeImage):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r206119 r206120  
     12016-09-19  Keith Rollin  <krollin@apple.com>
     2
     3        REGRESSION (r205275): LOG_WITH_STREAM() macros are all compiled in release builds now
     4        https://bugs.webkit.org/show_bug.cgi?id=162180
     5
     6        Reviewed by Simon Fraser.
     7
     8        Disable LOG_WITH_STREAM in release mode. Along with this, remove a
     9        local variable in GraphcsContextCG.cpp in release mode that's no
     10        longer referenced. And adjust logFunctionResult so that it gets
     11        defined only in debug mode, too, to match its declaration in
     12        LogMacros.h.
     13
     14        No new tests -- there are no tests for logging.
     15
     16        * platform/LogMacros.h:
     17        * platform/Logging.cpp:
     18        * platform/graphics/cg/GraphicsContextCG.cpp:
     19        (WebCore::GraphicsContext::drawNativeImage):
     20
    1212016-09-19  Daniel Bates  <dabates@apple.com>
    222
  • trunk/Source/WebCore/platform/LogMacros.h

    r205275 r206120  
    2828#include <functional>
    2929
    30 #if LOG_DISABLED && RELEASE_LOG_DISABLED
     30#if LOG_DISABLED
    3131
    3232#define LOG_RESULT(channel, function) ((void)0)
     
    4848    });
    4949
    50 #endif // !LOG_DISABLED || !RELEASE_LOG_DISABLED
     50#endif // !LOG_DISABLED
  • trunk/Source/WebCore/platform/Logging.cpp

    r205275 r206120  
    3636#endif
    3737
     38namespace WebCore {
     39
    3840#if !LOG_DISABLED || !RELEASE_LOG_DISABLED
    39 
    40 namespace WebCore {
    4141
    4242#define DEFINE_WEBCORE_LOG_CHANNEL(name) DEFINE_LOG_CHANNEL(name, LOG_CHANNEL_WEBKIT_SUBSYSTEM)
     
    9494#endif
    9595
     96#endif // !LOG_DISABLED || !RELEASE_LOG_DISABLED
     97
     98#if !LOG_DISABLED
    9699void logFunctionResult(WTFLogChannel* channel, std::function<const char*()> function)
    97100{
     
    99102}
    100103
     104#endif // !LOG_DISABLED
     105
    101106} // namespace WebCore
    102 
    103 #endif // !LOG_DISABLED || !RELEASE_LOG_DISABLED
  • trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp

    r205275 r206120  
    176176    }
    177177
    178 #if !LOG_DISABLED || !RELEASE_LOG_DISABLED
     178#if !LOG_DISABLED
    179179    double startTime = currentTime();
    180180#endif
Note: See TracChangeset for help on using the changeset viewer.