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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 2577123002: Add optional debugging output of what paint chunks go into what layers. (Closed)
Patch Set: none Created 4 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
8 reserved. 8 reserved.
9 9
10 This library is free software; you can redistribute it and/or 10 This library is free software; you can redistribute it and/or
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 // FIXME: Remove this method once plugin loading is decoupled from layout. 351 // FIXME: Remove this method once plugin loading is decoupled from layout.
352 void flushAnyPendingPostLayoutTasks(); 352 void flushAnyPendingPostLayoutTasks();
353 353
354 bool shouldSuspendScrollAnimations() const override; 354 bool shouldSuspendScrollAnimations() const override;
355 void scrollbarStyleChanged() override; 355 void scrollbarStyleChanged() override;
356 356
357 LayoutReplaced* embeddedReplacedContent() const; 357 LayoutReplaced* embeddedReplacedContent() const;
358 358
359 static void setInitialTracksPaintInvalidationsForTesting(bool); 359 static void setInitialTracksPaintInvalidationsForTesting(bool);
360 360
361 void setIsStoringCompositedLayerDebugInfo(bool val) {
362 m_isStoringCompositedLayerDebugInfo = val;
363 }
364
361 // These methods are for testing. 365 // These methods are for testing.
362 void setTracksPaintInvalidations(bool); 366 void setTracksPaintInvalidations(bool);
363 bool isTrackingPaintInvalidations() const { 367 bool isTrackingPaintInvalidations() const {
364 return m_trackedObjectPaintInvalidations.get(); 368 return m_trackedObjectPaintInvalidations.get();
365 } 369 }
366 void trackObjectPaintInvalidation(const DisplayItemClient&, 370 void trackObjectPaintInvalidation(const DisplayItemClient&,
367 PaintInvalidationReason); 371 PaintInvalidationReason);
368 std::unique_ptr<JSONArray> trackedObjectPaintInvalidationsAsJSON() const; 372 std::unique_ptr<JSONArray> trackedObjectPaintInvalidationsAsJSON() const;
369 373
370 using ScrollableAreaSet = HeapHashSet<Member<ScrollableArea>>; 374 using ScrollableAreaSet = HeapHashSet<Member<ScrollableArea>>;
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 struct ObjectPaintInvalidation { 1129 struct ObjectPaintInvalidation {
1126 String name; 1130 String name;
1127 PaintInvalidationReason reason; 1131 PaintInvalidationReason reason;
1128 }; 1132 };
1129 std::unique_ptr<Vector<ObjectPaintInvalidation>> 1133 std::unique_ptr<Vector<ObjectPaintInvalidation>>
1130 m_trackedObjectPaintInvalidations; 1134 m_trackedObjectPaintInvalidations;
1131 1135
1132 // For Slimming Paint v2 only. 1136 // For Slimming Paint v2 only.
1133 std::unique_ptr<PaintController> m_paintController; 1137 std::unique_ptr<PaintController> m_paintController;
1134 std::unique_ptr<PaintArtifactCompositor> m_paintArtifactCompositor; 1138 std::unique_ptr<PaintArtifactCompositor> m_paintArtifactCompositor;
1139 bool m_isStoringCompositedLayerDebugInfo;
1135 }; 1140 };
1136 1141
1137 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) { 1142 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) {
1138 if (m_isVisuallyNonEmpty) 1143 if (m_isVisuallyNonEmpty)
1139 return; 1144 return;
1140 m_visuallyNonEmptyCharacterCount += count; 1145 m_visuallyNonEmptyCharacterCount += count;
1141 // Use a threshold value to prevent very small amounts of visible content from 1146 // Use a threshold value to prevent very small amounts of visible content from
1142 // triggering didMeaningfulLayout. The first few hundred characters rarely 1147 // triggering didMeaningfulLayout. The first few hundred characters rarely
1143 // contain the interesting content of the page. 1148 // contain the interesting content of the page.
1144 static const unsigned visualCharacterThreshold = 200; 1149 static const unsigned visualCharacterThreshold = 200;
(...skipping 20 matching lines...) Expand all
1165 widget.isFrameView()); 1170 widget.isFrameView());
1166 DEFINE_TYPE_CASTS(FrameView, 1171 DEFINE_TYPE_CASTS(FrameView,
1167 ScrollableArea, 1172 ScrollableArea,
1168 scrollableArea, 1173 scrollableArea,
1169 scrollableArea->isFrameView(), 1174 scrollableArea->isFrameView(),
1170 scrollableArea.isFrameView()); 1175 scrollableArea.isFrameView());
1171 1176
1172 } // namespace blink 1177 } // namespace blink
1173 1178
1174 #endif // FrameView_h 1179 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698