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

Unified Diff: Source/core/testing/Internals.cpp

Issue 1324763002: Paint invalidation tests for slimming paint v2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 8bdd33bf65ab08aa89ff282a950ee781b2a7069f..1f59f48c4a7226289a0cabf57ae9f929f7ee4d2a 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1974,6 +1974,24 @@ void Internals::forceFullRepaint(Document* document, ExceptionState& exceptionSt
layoutView->invalidatePaintForViewAndCompositedLayers();
}
+void Internals::startTrackingPaintInvalidationObjects()
+{
+ ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
+ toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->layer()->graphicsLayerBacking()->displayItemList()->startTrackingPaintInvalidationObjects();
+}
+
+void Internals::stopTrackingPaintInvalidationObjects()
+{
+ ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
+ toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->layer()->graphicsLayerBacking()->displayItemList()->stopTrackingPaintInvalidationObjects();
+}
+
+Vector<String> Internals::trackedPaintInvalidationObjects()
+{
+ ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
+ return toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->layer()->graphicsLayerBacking()->displayItemList()->trackedPaintInvalidationObjects();
+}
+
ClientRectList* Internals::draggableRegions(Document* document, ExceptionState& exceptionState)
{
return annotatedRegions(document, true, exceptionState);

Powered by Google App Engine
This is Rietveld 408576698