Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2732643003: DevTools: remove PerformanceMonitor::HandlerCall, migrate to the new scoped probes. (Closed)
Patch Set: Introduce progress monitor Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 5c8e3d3fd04e922c3d92b20fee456927195938ce..01e53441a2610e31e21d9980f4ade355005ce0ba 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -1177,7 +1177,7 @@ void FrameView::layout() {
Document* document = m_frame->document();
TRACE_EVENT_BEGIN1("devtools.timeline", "Layout", "beginData",
InspectorLayoutEvent::beginData(this));
- probe::willUpdateLayout(document);
+ probe::UpdateLayout probe(document);
performPreLayoutTasks();
@@ -1320,7 +1320,7 @@ void FrameView::layout() {
// Remove or update this code. crbug.com/460596
TRACE_EVENT_END1("devtools.timeline", "Layout", "endData",
InspectorLayoutEvent::endData(rootForThisLayout));
- probe::didUpdateLayout(m_frame.get());
+ probe::didChangeViewport(m_frame.get());
m_nestedLayoutCount--;
if (m_nestedLayoutCount)
@@ -1768,14 +1768,14 @@ bool FrameView::scrollContentsFastPath(const IntSize& scrollDelta) {
if (!m_viewportConstrainedObjects ||
m_viewportConstrainedObjects->isEmpty()) {
- probe::didUpdateLayout(m_frame.get());
+ probe::didChangeViewport(m_frame.get());
return true;
}
if (!invalidateViewportConstrainedObjects())
return false;
- probe::didUpdateLayout(m_frame.get());
+ probe::didChangeViewport(m_frame.get());
return true;
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMTimer.cpp ('k') | third_party/WebKit/Source/core/frame/PerformanceMonitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698