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

Unified Diff: third_party/WebKit/Source/core/paint/HTMLCanvasPainterTest.cpp

Issue 2307143002: Remove non-layer-list codepath from PaintArtifactCompositor (Closed)
Patch Set: Formatting cleanup Created 4 years, 3 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 | « no previous file | third_party/WebKit/Source/core/paint/StubChromeClientForSPv2.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/HTMLCanvasPainterTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/HTMLCanvasPainterTest.cpp b/third_party/WebKit/Source/core/paint/HTMLCanvasPainterTest.cpp
index 4a58e78ac1ef1fa2bf901b3228841fd279799937..13f8b22309d8c309f6b5e4889f2bd9749ba2d209 100644
--- a/third_party/WebKit/Source/core/paint/HTMLCanvasPainterTest.cpp
+++ b/third_party/WebKit/Source/core/paint/HTMLCanvasPainterTest.cpp
@@ -24,12 +24,12 @@
namespace blink {
-class HTMLCanvasPainterTestForSPv2 : public ::testing::TestWithParam<WebLayerTreeViewImplForTesting::LayerListPolicy> {
+class HTMLCanvasPainterTestForSPv2 : public ::testing::Test {
protected:
void SetUp() override
{
RuntimeEnabledFeatures::setSlimmingPaintV2Enabled(true);
- m_chromeClient = new StubChromeClientForSPv2(GetParam());
+ m_chromeClient = new StubChromeClientForSPv2();
Page::PageClients clients;
fillWithEmptyClients(clients);
clients.chromeClient = m_chromeClient.get();
@@ -67,11 +67,7 @@ private:
std::unique_ptr<DummyPageHolder> m_pageHolder;
};
-INSTANTIATE_TEST_CASE_P(, HTMLCanvasPainterTestForSPv2, ::testing::Values(
- WebLayerTreeViewImplForTesting::DontUseLayerLists,
- WebLayerTreeViewImplForTesting::UseLayerLists));
-
-TEST_P(HTMLCanvasPainterTestForSPv2, Canvas2DLayerAppearsInLayerTree)
+TEST_F(HTMLCanvasPainterTestForSPv2, Canvas2DLayerAppearsInLayerTree)
{
// Insert a <canvas> and force it into accelerated mode.
document().body()->setInnerHTML("<canvas width=300 height=200>", ASSERT_NO_EXCEPTION);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/StubChromeClientForSPv2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698