Changeset 179468 in webkit


Ignore:
Timestamp:
Feb 1, 2015, 10:42:33 AM (10 years ago)
Author:
mitz@apple.com
Message:

Remove ViewGestureController tracing
https://bugs.webkit.org/show_bug.cgi?id=141137

Reviewed by Tim Horton.

Remove the tracing added in r176133, now that http://webkit.org/b/138750 is fixed.

  • UIProcess/ios/ViewGestureControllerIOS.mm:

(WebKit::ViewGestureController::beginSwipeGesture):
(WebKit::ViewGestureController::endSwipeGesture):
(WebKit::ViewGestureController::willCommitPostSwipeTransitionLayerTree):
(WebKit::ViewGestureController::removeSwipeSnapshot):
(WebKit::addLogEntry): Deleted.
(WebKit::dumpLogEntries): Deleted.

  • UIProcess/mac/ViewGestureController.h:
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r179450 r179468  
     12015-02-01  Dan Bernstein  <mitz@apple.com>
     2
     3        Remove ViewGestureController tracing
     4        https://bugs.webkit.org/show_bug.cgi?id=141137
     5
     6        Reviewed by Tim Horton.
     7
     8        Remove the tracing added in r176133, now that http://webkit.org/b/138750 is fixed.
     9
     10        * UIProcess/ios/ViewGestureControllerIOS.mm:
     11        (WebKit::ViewGestureController::beginSwipeGesture):
     12        (WebKit::ViewGestureController::endSwipeGesture):
     13        (WebKit::ViewGestureController::willCommitPostSwipeTransitionLayerTree):
     14        (WebKit::ViewGestureController::removeSwipeSnapshot):
     15        (WebKit::addLogEntry): Deleted.
     16        (WebKit::dumpLogEntries): Deleted.
     17        * UIProcess/mac/ViewGestureController.h:
     18
    1192015-01-31  Sam Weinig  <sam@webkit.org>
    220
  • trunk/Source/WebKit2/UIProcess/ios/ViewGestureControllerIOS.mm

    r178080 r179468  
    4444#import <WebCore/QuartzCoreSPI.h>
    4545#import <wtf/NeverDestroyed.h>
    46 #import <wtf/text/StringBuilder.h>
    4746
    4847using namespace WebCore;
     
    170169}
    171170
    172 #if ENABLE(VIEW_GESTURE_CONTROLLER_TRACING)
    173 static void addLogEntry(Vector<String>& entries, const String& message)
    174 {
    175     void* stack[32];
    176     int size = WTF_ARRAY_LENGTH(stack);
    177     WTFGetBacktrace(stack, &size);
    178     StringBuilder stringBuilder;
    179     stringBuilder.append(String::format("%f [ ", CFAbsoluteTimeGetCurrent()));
    180     for (int i = 2; i < size; ++i) {
    181         if (i > 2)
    182             stringBuilder.appendLiteral(", ");
    183         stringBuilder.append(String::format("%p", stack[i]));
    184     }
    185     stringBuilder.appendLiteral(" ] ");
    186     stringBuilder.append(message);
    187     entries.append(stringBuilder.toString());
    188 }
    189 
    190 static void dumpLogEntries(const Vector<String>& entries, WebPageProxy* webPageProxy)
    191 {
    192     for (const auto& entry: entries)
    193         WTFLogAlways(entry.utf8().data());
    194     WTFLogAlways("m_webPageProxy: %p", webPageProxy);
    195 }
    196 #endif
    197 
    198171void ViewGestureController::beginSwipeGesture(_UINavigationInteractiveTransitionBase *transition, SwipeDirection direction)
    199172{
     
    204177
    205178    m_webPageProxyForBackForwardListForCurrentSwipe = m_alternateBackForwardListSourceView.get() ? m_alternateBackForwardListSourceView.get()->_page : &m_webPageProxy;
    206 #if ENABLE(VIEW_GESTURE_CONTROLLER_TRACING)
    207     addLogEntry(m_logEntries, String::format("m_webPageProxyForBackForwardListForCurrentSwipe: %p", m_webPageProxyForBackForwardListForCurrentSwipe.get()));
    208 #endif
    209179    m_webPageProxyForBackForwardListForCurrentSwipe->navigationGestureDidBegin();
    210180
     
    308278        RefPtr<WebPageProxy> webPageProxyForBackForwardListForCurrentSwipe = m_webPageProxyForBackForwardListForCurrentSwipe;
    309279        removeSwipeSnapshot();
    310 #if ENABLE(VIEW_GESTURE_CONTROLLER_TRACING)
    311         if (!webPageProxyForBackForwardListForCurrentSwipe)
    312             dumpLogEntries(m_logEntries, &m_webPageProxy);
    313         m_logEntries.clear();
    314 #endif
    315 
    316280        webPageProxyForBackForwardListForCurrentSwipe->navigationGestureDidEnd(false, *targetItem);
    317 
    318281        return;
    319282    }
     
    322285    if (ViewSnapshot* snapshot = targetItem->snapshot())
    323286        m_snapshotRemovalTargetRenderTreeSize = snapshot->renderTreeSize() * swipeSnapshotRemovalRenderTreeSizeTargetFraction;
    324 
    325 #if ENABLE(VIEW_GESTURE_CONTROLLER_TRACING)
    326     if (!m_webPageProxyForBackForwardListForCurrentSwipe)
    327         dumpLogEntries(m_logEntries, &m_webPageProxy);
    328     m_logEntries.clear();
    329 #endif
    330287
    331288    m_webPageProxyForBackForwardListForCurrentSwipe->navigationGestureDidEnd(true, *targetItem);
     
    350307void ViewGestureController::willCommitPostSwipeTransitionLayerTree(bool successful)
    351308{
    352 #if ENABLE(VIEW_GESTURE_CONTROLLER_TRACING)
    353     addLogEntry(m_logEntries, String::format("successful: %d; m_activeGestureType: %d; m_webPageProxyForBackForwardListForCurrentSwipe: %p", successful, m_activeGestureType, m_webPageProxyForBackForwardListForCurrentSwipe.get()));
    354 #endif
    355309    if (m_activeGestureType != ViewGestureType::Swipe)
    356310        return;
     
    387341    m_swipeWatchdogTimer.stop();
    388342
    389 #if ENABLE(VIEW_GESTURE_CONTROLLER_TRACING)
    390     addLogEntry(m_logEntries, String::format("m_activeGestureType: %d; m_webPageProxyForBackForwardListForCurrentSwipe: %p", m_activeGestureType, m_webPageProxyForBackForwardListForCurrentSwipe.get()));
    391 #endif
    392343    if (m_activeGestureType != ViewGestureType::Swipe)
    393344        return;
  • trunk/Source/WebKit2/UIProcess/mac/ViewGestureController.h

    r177917 r179468  
    3434#include <wtf/RunLoop.h>
    3535
    36 #define ENABLE_VIEW_GESTURE_CONTROLLER_TRACING 1
    37 
    3836OBJC_CLASS CALayer;
    3937
     
    217215    RefPtr<WebPageProxy> m_webPageProxyForBackForwardListForCurrentSwipe;
    218216    uint64_t m_gesturePendingSnapshotRemoval;
    219 #if ENABLE(VIEW_GESTURE_CONTROLLER_TRACING)
    220     Vector<String> m_logEntries;
    221 #endif
    222217#endif
    223218};
Note: See TracChangeset for help on using the changeset viewer.