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

Unified Diff: cc/layers/picture_layer_impl_unittest.cc

Issue 2171143002: cc: Get rid of non-delegated rendering in most cc unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@killdirecttests
Patch Set: fakeoutputsurface: no-constructor Created 4 years, 5 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 | « cc/layers/picture_layer_impl_perftest.cc ('k') | cc/layers/picture_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl_unittest.cc
diff --git a/cc/layers/picture_layer_impl_unittest.cc b/cc/layers/picture_layer_impl_unittest.cc
index f3f389ad8f191311cac4e0b7c1ed494d84c292e7..8da72b7e232f9e795109d612e03895e03d625f2b 100644
--- a/cc/layers/picture_layer_impl_unittest.cc
+++ b/cc/layers/picture_layer_impl_unittest.cc
@@ -1450,7 +1450,7 @@ TEST_F(PictureLayerImplTest, ClampTilesToMaxTileSize) {
std::unique_ptr<TestWebGraphicsContext3D> context =
TestWebGraphicsContext3D::Create();
context->set_max_texture_size(140);
- ResetOutputSurface(FakeOutputSurface::Create3d(std::move(context)));
+ ResetOutputSurface(FakeOutputSurface::CreateDelegating3d(std::move(context)));
SetupDrawPropertiesAndUpdateTiles(pending_layer(), 1.f, 1.f, 1.f, 1.f, 0.f,
false);
@@ -1485,7 +1485,7 @@ TEST_F(PictureLayerImplTest, ClampSingleTileToToMaxTileSize) {
std::unique_ptr<TestWebGraphicsContext3D> context =
TestWebGraphicsContext3D::Create();
context->set_max_texture_size(140);
- ResetOutputSurface(FakeOutputSurface::Create3d(std::move(context)));
+ ResetOutputSurface(FakeOutputSurface::CreateDelegating3d(std::move(context)));
SetupDrawPropertiesAndUpdateTiles(active_layer(), 1.f, 1.f, 1.f, 1.f, 0.f,
false);
@@ -4317,7 +4317,7 @@ void PictureLayerImplTest::TestQuadsForSolidColor(bool test_for_solid) {
FakeContentLayerClient client;
client.set_bounds(layer_bounds);
scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client);
- FakeLayerTreeHostClient host_client(FakeLayerTreeHostClient::DIRECT_3D);
+ FakeLayerTreeHostClient host_client;
TestTaskGraphRunner task_graph_runner;
std::unique_ptr<FakeLayerTreeHost> host =
FakeLayerTreeHost::Create(&host_client, &task_graph_runner);
@@ -4380,7 +4380,7 @@ TEST_F(PictureLayerImplTest, NonSolidToSolidNoTilings) {
FakeContentLayerClient client;
client.set_bounds(layer_bounds);
scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client);
- FakeLayerTreeHostClient host_client(FakeLayerTreeHostClient::DIRECT_3D);
+ FakeLayerTreeHostClient host_client;
TestTaskGraphRunner task_graph_runner;
std::unique_ptr<FakeLayerTreeHost> host =
FakeLayerTreeHost::Create(&host_client, &task_graph_runner);
« no previous file with comments | « cc/layers/picture_layer_impl_perftest.cc ('k') | cc/layers/picture_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698