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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 1897123002: Remove current implementation of frame timing events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index c72781a90c4bdaac37326d3a9b65755e552a3310..8487e6d4ae15436a246667badf6061e7defdceda 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -4382,27 +4382,6 @@ void WebViewImpl::applyViewportDeltas(
}
}
-void WebViewImpl::recordFrameTimingEvent(FrameTimingEventType eventType, int64_t FrameId, const WebVector<WebFrameTimingEvent>& events)
-{
- Frame* frame = m_page ? m_page->mainFrame() : 0;
-
- while (frame && frame->frameID() != FrameId) {
- frame = frame->tree().traverseNext();
- }
-
- if (!frame || !frame->domWindow() || !frame->domWindow()->document())
- return; // Can't find frame, it may have been cleaned up from the DOM.
-
- blink::DOMWindow* domWindow = frame->domWindow();
- blink::Performance* performance = DOMWindowPerformance::performance(*domWindow);
- for (size_t i = 0; i < events.size(); ++i) {
- if (eventType == CompositeEvent)
- performance->addCompositeTiming(domWindow->document(), events[i].sourceFrame, events[i].startTime);
- else if (eventType == RenderEvent)
- performance->addRenderTiming(domWindow->document(), events[i].sourceFrame, events[i].startTime, events[i].finishTime);
- }
-}
-
void WebViewImpl::updateLayerTreeViewport()
{
if (!page() || !m_layerTreeView)
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698