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

Unified Diff: Source/core/layout/LayoutTestHelper.cpp

Issue 1301033002: Plumb CompositedDisplayList to WebViewImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Final checklist: cleanup ordering in WebCompositedDisplayList 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
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/layout/LayoutView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutTestHelper.cpp
diff --git a/Source/core/layout/LayoutTestHelper.cpp b/Source/core/layout/LayoutTestHelper.cpp
index 8a10aeb27ee8ae1fc6dec2ec082297a01cda6948..9030cd48624497dd8aed9b0bd3f95db3dd6ad8cb 100644
--- a/Source/core/layout/LayoutTestHelper.cpp
+++ b/Source/core/layout/LayoutTestHelper.cpp
@@ -8,6 +8,7 @@
#include "core/loader/EmptyClients.h"
#include "platform/graphics/GraphicsLayer.h"
#include "platform/graphics/GraphicsLayerFactory.h"
+#include "public/platform/WebCompositedDisplayList.h"
namespace blink {
@@ -28,6 +29,19 @@ public:
static FakeGraphicsLayerFactory* factory = adoptPtr(new FakeGraphicsLayerFactory).leakPtr();
return factory;
}
+
+ void setCompositedDisplayList(PassOwnPtr<CompositedDisplayList> compositedDisplayList) override
+ {
+ m_compositedDisplayList.assign(compositedDisplayList);
+ }
+
+ CompositedDisplayList* compositedDisplayListForTesting() override
+ {
+ return m_compositedDisplayList.compositedDisplayListForTesting();
+ }
+
+private:
+ WebCompositedDisplayList m_compositedDisplayList;
};
void RenderingTest::SetUp()
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/layout/LayoutView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698