Changeset 206120 in webkit
- Timestamp:
- Sep 19, 2016 2:59:28 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r206119 r206120 1 2016-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 1 21 2016-09-19 Daniel Bates <dabates@apple.com> 2 22 -
trunk/Source/WebCore/platform/LogMacros.h
r205275 r206120 28 28 #include <functional> 29 29 30 #if LOG_DISABLED && RELEASE_LOG_DISABLED30 #if LOG_DISABLED 31 31 32 32 #define LOG_RESULT(channel, function) ((void)0) … … 48 48 }); 49 49 50 #endif // !LOG_DISABLED || !RELEASE_LOG_DISABLED50 #endif // !LOG_DISABLED -
trunk/Source/WebCore/platform/Logging.cpp
r205275 r206120 36 36 #endif 37 37 38 namespace WebCore { 39 38 40 #if !LOG_DISABLED || !RELEASE_LOG_DISABLED 39 40 namespace WebCore {41 41 42 42 #define DEFINE_WEBCORE_LOG_CHANNEL(name) DEFINE_LOG_CHANNEL(name, LOG_CHANNEL_WEBKIT_SUBSYSTEM) … … 94 94 #endif 95 95 96 #endif // !LOG_DISABLED || !RELEASE_LOG_DISABLED 97 98 #if !LOG_DISABLED 96 99 void logFunctionResult(WTFLogChannel* channel, std::function<const char*()> function) 97 100 { … … 99 102 } 100 103 104 #endif // !LOG_DISABLED 105 101 106 } // namespace WebCore 102 103 #endif // !LOG_DISABLED || !RELEASE_LOG_DISABLED -
trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
r205275 r206120 176 176 } 177 177 178 #if !LOG_DISABLED || !RELEASE_LOG_DISABLED178 #if !LOG_DISABLED 179 179 double startTime = currentTime(); 180 180 #endif
Note: See TracChangeset
for help on using the changeset viewer.