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

Unified Diff: Source/core/frame/FrameView.h

Issue 908453003: Blink changes to record interest rects for http://w3c.github.io/frame-timing/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code review comments Created 5 years, 7 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: Source/core/frame/FrameView.h
diff --git a/Source/core/frame/FrameView.h b/Source/core/frame/FrameView.h
index b070825eaa8a2775d9494f80f2006c5e4fb18b4a..48d103cc0bf8e86f4be4b48ec4588d37d17842ca 100644
--- a/Source/core/frame/FrameView.h
+++ b/Source/core/frame/FrameView.h
@@ -39,6 +39,7 @@
#include "platform/scroll/ScrollableArea.h"
#include "platform/scroll/Scrollbar.h"
#include "public/platform/WebDisplayMode.h"
+#include "public/platform/WebRect.h"
#include "wtf/Forward.h"
#include "wtf/HashSet.h"
#include "wtf/OwnPtr.h"
@@ -717,6 +718,11 @@ private:
// LayoutObject for the viewport-defining element (see Document::viewportDefiningElement).
LayoutObject* viewportLayoutObject();
+ typedef WTF::HashMap <const GraphicsLayer*, std::vector<std::pair<int64_t, WebRect>>> GraphicsLayerFrameTimingRequests;
+ void updateFrameTimingRequestsIfNeeded();
+ void collectFrameTimingRequests(GraphicsLayerFrameTimingRequests&);
+ void collectFrameTimingRequestsRecursive(GraphicsLayerFrameTimingRequests&);
+
LayoutSize m_size;
typedef HashSet<RefPtr<LayoutEmbeddedObject>> EmbeddedObjectSet;

Powered by Google App Engine
This is Rietveld 408576698