Title: [199046] trunk/Source/WebCore
Revision
199046
Author
[email protected]
Date
2016-04-04 23:13:55 -0700 (Mon, 04 Apr 2016)

Log Message

Guard showGraphicsLayerTree() with ENABLE(TREE_DEBUGGING)
https://bugs.webkit.org/show_bug.cgi?id=156157

Reviewed by Simon Fraser.

Mimic r181166 and guard the showGraphicsLayerTree() function with
ENABLE(TREE_DEBUGGING) guards, instead of !defined(NDEBUG). This
would enable invoking the function in release builds when the
ENABLE_TREE_DEBUGGING option is enabled, not limiting the function
to only debug builds.

* platform/graphics/GraphicsLayer.cpp:
* platform/graphics/GraphicsLayer.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (199045 => 199046)


--- trunk/Source/WebCore/ChangeLog	2016-04-05 06:11:22 UTC (rev 199045)
+++ trunk/Source/WebCore/ChangeLog	2016-04-05 06:13:55 UTC (rev 199046)
@@ -1,5 +1,21 @@
 2016-04-04  Zan Dobersek  <[email protected]>
 
+        Guard showGraphicsLayerTree() with ENABLE(TREE_DEBUGGING)
+        https://bugs.webkit.org/show_bug.cgi?id=156157
+
+        Reviewed by Simon Fraser.
+
+        Mimic r181166 and guard the showGraphicsLayerTree() function with
+        ENABLE(TREE_DEBUGGING) guards, instead of !defined(NDEBUG). This
+        would enable invoking the function in release builds when the
+        ENABLE_TREE_DEBUGGING option is enabled, not limiting the function
+        to only debug builds.
+
+        * platform/graphics/GraphicsLayer.cpp:
+        * platform/graphics/GraphicsLayer.h:
+
+2016-04-04  Zan Dobersek  <[email protected]>
+
         [TexMap] Improve viewport array access in TextureMapperGL::bindDefaultSurface()
         https://bugs.webkit.org/show_bug.cgi?id=156159
 

Modified: trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp (199045 => 199046)


--- trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp	2016-04-05 06:11:22 UTC (rev 199045)
+++ trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp	2016-04-05 06:13:55 UTC (rev 199046)
@@ -911,7 +911,7 @@
 
 } // namespace WebCore
 
-#ifndef NDEBUG
+#if ENABLE(TREE_DEBUGGING)
 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer)
 {
     if (!layer)

Modified: trunk/Source/WebCore/platform/graphics/GraphicsLayer.h (199045 => 199046)


--- trunk/Source/WebCore/platform/graphics/GraphicsLayer.h	2016-04-05 06:11:22 UTC (rev 199045)
+++ trunk/Source/WebCore/platform/graphics/GraphicsLayer.h	2016-04-05 06:13:55 UTC (rev 199046)
@@ -666,7 +666,7 @@
     static bool isType(const WebCore::GraphicsLayer& layer) { return layer.predicate; } \
 SPECIALIZE_TYPE_TRAITS_END()
 
-#ifndef NDEBUG
+#if ENABLE(TREE_DEBUGGING)
 // Outside the WebCore namespace for ease of invocation from gdb.
 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer);
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to