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

Unified Diff: cc/layers/picture_layer_unittest.cc

Issue 348093004: Make cc output surface creation async (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android compile fixes Created 6 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
Index: cc/layers/picture_layer_unittest.cc
diff --git a/cc/layers/picture_layer_unittest.cc b/cc/layers/picture_layer_unittest.cc
index 54f0bb756e468d493cb752a38f0370c07f2669bd..331193f642c4a4370facce0525ac1de3b8e24295 100644
--- a/cc/layers/picture_layer_unittest.cc
+++ b/cc/layers/picture_layer_unittest.cc
@@ -35,7 +35,8 @@ TEST(PictureLayerTest, NoTilesIfEmptyBounds) {
scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client);
layer->SetBounds(gfx::Size(10, 10));
- scoped_ptr<FakeLayerTreeHost> host = FakeLayerTreeHost::Create();
+ FakeLayerTreeHostClient host_client(FakeLayerTreeHostClient::DIRECT_3D);
+ scoped_ptr<FakeLayerTreeHost> host = FakeLayerTreeHost::Create(&host_client);
host->SetRootLayer(layer);
layer->SetIsDrawable(true);
layer->SavePaintProperties();
@@ -88,12 +89,14 @@ TEST(PictureLayerTest, RecordingModes) {
scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client);
LayerTreeSettings settings;
- scoped_ptr<FakeLayerTreeHost> host = FakeLayerTreeHost::Create(settings);
+ FakeLayerTreeHostClient host_client(FakeLayerTreeHostClient::DIRECT_3D);
+ scoped_ptr<FakeLayerTreeHost> host =
+ FakeLayerTreeHost::Create(&host_client, settings);
host->SetRootLayer(layer);
EXPECT_EQ(Picture::RECORD_NORMALLY, layer->RecordingMode());
settings.recording_mode = LayerTreeSettings::RecordWithSkRecord;
- host = FakeLayerTreeHost::Create(settings);
+ host = FakeLayerTreeHost::Create(&host_client, settings);
host->SetRootLayer(layer);
EXPECT_EQ(Picture::RECORD_WITH_SKRECORD, layer->RecordingMode());
}

Powered by Google App Engine
This is Rietveld 408576698