Changeset 199046 in webkit


Ignore:
Timestamp:
Apr 4, 2016 11:13:55 PM (8 years ago)
Author:
zandobersek@gmail.com
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:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r199045 r199046  
     12016-04-04  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Guard showGraphicsLayerTree() with ENABLE(TREE_DEBUGGING)
     4        https://bugs.webkit.org/show_bug.cgi?id=156157
     5
     6        Reviewed by Simon Fraser.
     7
     8        Mimic r181166 and guard the showGraphicsLayerTree() function with
     9        ENABLE(TREE_DEBUGGING) guards, instead of !defined(NDEBUG). This
     10        would enable invoking the function in release builds when the
     11        ENABLE_TREE_DEBUGGING option is enabled, not limiting the function
     12        to only debug builds.
     13
     14        * platform/graphics/GraphicsLayer.cpp:
     15        * platform/graphics/GraphicsLayer.h:
     16
    1172016-04-04  Zan Dobersek  <zdobersek@igalia.com>
    218
  • trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp

    r198189 r199046  
    912912} // namespace WebCore
    913913
    914 #ifndef NDEBUG
     914#if ENABLE(TREE_DEBUGGING)
    915915void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer)
    916916{
  • trunk/Source/WebCore/platform/graphics/GraphicsLayer.h

    r198189 r199046  
    667667SPECIALIZE_TYPE_TRAITS_END()
    668668
    669 #ifndef NDEBUG
     669#if ENABLE(TREE_DEBUGGING)
    670670// Outside the WebCore namespace for ease of invocation from gdb.
    671671void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer);
Note: See TracChangeset for help on using the changeset viewer.