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

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

Issue 26110004: Defer the real work in updateCompositingLayers until it's really needed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: almost there Created 7 years, 2 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 be7d4c40bcc66a16026c597b11b6bbf4d7e0cb97..5d4adb4efed927c0dd007b9dd80ef5e0a25b009f 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -2291,4 +2291,18 @@ bool Internals::loseSharedGraphicsContext3D()
return true;
}
+void Internals::forceCompositingUpdate(Document* document, ExceptionState& es)
+{
+ if (!document || !document->renderView()) {
+ es.throwUninformativeAndGenericDOMException(InvalidAccessError);
+ return;
+ }
+
+ document->updateLayout();
+
+ RenderView* view = document->renderView();
+ if (view->compositor())
+ view->compositor()->updateCompositingLayers(CompositingUpdateFinishAllDeferredWork);
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698