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

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: Move Frame Timing rect collection from WebViewImpl to FrameView. 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..9f4617e16d0c9aee7041b2bf7529d6493cebac4f 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"
@@ -233,6 +234,8 @@ public:
void invalidateTreeIfNeededRecursive();
bool invalidateViewportConstrainedObjects();
+ void updateFrameTimingRequestsIfNeeded();
chrishtr 2015/05/08 16:52:05 Make this private.
MikeB 2015/05/08 18:37:34 Done.
+
void incrementVisuallyNonEmptyCharacterCount(unsigned);
void incrementVisuallyNonEmptyPixelCount(const IntSize&);
void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; }
@@ -717,6 +720,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 collectFrameTimingRequestsRecursive(GraphicsLayerFrameTimingRequests&);
+
LayoutSize m_size;
typedef HashSet<RefPtr<LayoutEmbeddedObject>> EmbeddedObjectSet;

Powered by Google App Engine
This is Rietveld 408576698