Changeset 179468 in webkit
- Timestamp:
- Feb 1, 2015, 10:42:33 AM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r179450 r179468 1 2015-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 1 19 2015-01-31 Sam Weinig <sam@webkit.org> 2 20 -
trunk/Source/WebKit2/UIProcess/ios/ViewGestureControllerIOS.mm
r178080 r179468 44 44 #import <WebCore/QuartzCoreSPI.h> 45 45 #import <wtf/NeverDestroyed.h> 46 #import <wtf/text/StringBuilder.h>47 46 48 47 using namespace WebCore; … … 170 169 } 171 170 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 #endif197 198 171 void ViewGestureController::beginSwipeGesture(_UINavigationInteractiveTransitionBase *transition, SwipeDirection direction) 199 172 { … … 204 177 205 178 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 #endif209 179 m_webPageProxyForBackForwardListForCurrentSwipe->navigationGestureDidBegin(); 210 180 … … 308 278 RefPtr<WebPageProxy> webPageProxyForBackForwardListForCurrentSwipe = m_webPageProxyForBackForwardListForCurrentSwipe; 309 279 removeSwipeSnapshot(); 310 #if ENABLE(VIEW_GESTURE_CONTROLLER_TRACING)311 if (!webPageProxyForBackForwardListForCurrentSwipe)312 dumpLogEntries(m_logEntries, &m_webPageProxy);313 m_logEntries.clear();314 #endif315 316 280 webPageProxyForBackForwardListForCurrentSwipe->navigationGestureDidEnd(false, *targetItem); 317 318 281 return; 319 282 } … … 322 285 if (ViewSnapshot* snapshot = targetItem->snapshot()) 323 286 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 #endif330 287 331 288 m_webPageProxyForBackForwardListForCurrentSwipe->navigationGestureDidEnd(true, *targetItem); … … 350 307 void ViewGestureController::willCommitPostSwipeTransitionLayerTree(bool successful) 351 308 { 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 #endif355 309 if (m_activeGestureType != ViewGestureType::Swipe) 356 310 return; … … 387 341 m_swipeWatchdogTimer.stop(); 388 342 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 #endif392 343 if (m_activeGestureType != ViewGestureType::Swipe) 393 344 return; -
trunk/Source/WebKit2/UIProcess/mac/ViewGestureController.h
r177917 r179468 34 34 #include <wtf/RunLoop.h> 35 35 36 #define ENABLE_VIEW_GESTURE_CONTROLLER_TRACING 137 38 36 OBJC_CLASS CALayer; 39 37 … … 217 215 RefPtr<WebPageProxy> m_webPageProxyForBackForwardListForCurrentSwipe; 218 216 uint64_t m_gesturePendingSnapshotRemoval; 219 #if ENABLE(VIEW_GESTURE_CONTROLLER_TRACING)220 Vector<String> m_logEntries;221 #endif222 217 #endif 223 218 };
Note:
See TracChangeset
for help on using the changeset viewer.