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

Unified Diff: Source/core/page/Page.cpp

Issue 1301033002: Plumb CompositedDisplayList to WebViewImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase from space, also minor cleanups 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/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index cc6ac482156b4a93da92de568dac39924879b1f5..c319013aff0ac20863a1fdac528ed75cad94d853 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -49,6 +49,7 @@
#include "core/paint/DeprecatedPaintLayer.h"
#include "platform/graphics/GraphicsLayer.h"
#include "platform/plugins/PluginData.h"
+#include "public/platform/WebCompositedDisplayList.h"
#include "wtf/RefCountedLeakCounter.h"
namespace blink {
@@ -532,6 +533,19 @@ void Page::acceptLanguagesChanged()
frames[i]->localDOMWindow()->acceptLanguagesChanged();
}
+void Page::setCompositedDisplayList(PassOwnPtr<CompositedDisplayList> compositedDisplayList)
+{
+ OwnPtr<WebCompositedDisplayList> webCompositedDisplayList = adoptPtr(new WebCompositedDisplayList(compositedDisplayList));
+ chromeClient().setCompositedDisplayList(webCompositedDisplayList.release());
+}
+
+CompositedDisplayList* Page::compositedDisplayListForTesting()
+{
+ if (WebCompositedDisplayList* compositedDisplayList = chromeClient().compositedDisplayListForTesting())
+ return compositedDisplayList->compositedDisplayListForTesting();
+ return nullptr;
+}
+
DEFINE_TRACE(Page)
{
#if ENABLE(OILPAN)

Powered by Google App Engine
This is Rietveld 408576698