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

Unified Diff: cc/layers/picture_layer_unittest.cc

Issue 2317753002: cc: Abstract the LayerTreeHost. (Closed)
Patch Set: Rebase 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 | « cc/layers/picture_layer.cc ('k') | cc/layers/surface_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_unittest.cc
diff --git a/cc/layers/picture_layer_unittest.cc b/cc/layers/picture_layer_unittest.cc
index e88e0675936837d21311c7ceb516b71ae0f68732..b8acc2e865ab691eaa0069697dbf9f49928cf6ec 100644
--- a/cc/layers/picture_layer_unittest.cc
+++ b/cc/layers/picture_layer_unittest.cc
@@ -241,9 +241,9 @@ TEST(PictureLayerTest, NoTilesIfEmptyBounds) {
layer->SavePaintProperties();
layer->Update();
- EXPECT_EQ(0, host->source_frame_number());
+ EXPECT_EQ(0, host->SourceFrameNumber());
host->CommitComplete();
- EXPECT_EQ(1, host->source_frame_number());
+ EXPECT_EQ(1, host->SourceFrameNumber());
layer->SetBounds(gfx::Size(0, 0));
layer->SavePaintProperties();
@@ -376,9 +376,9 @@ TEST(PictureLayerTest, ClearVisibleRectWhenNoTiling) {
layer->SavePaintProperties();
layer->Update();
- EXPECT_EQ(0, host->source_frame_number());
+ EXPECT_EQ(0, host->SourceFrameNumber());
host->CommitComplete();
- EXPECT_EQ(1, host->source_frame_number());
+ EXPECT_EQ(1, host->SourceFrameNumber());
layer->SavePaintProperties();
layer->Update();
@@ -407,7 +407,7 @@ TEST(PictureLayerTest, ClearVisibleRectWhenNoTiling) {
layer->PushPropertiesTo(layer_impl);
host->CommitComplete();
- EXPECT_EQ(2, host->source_frame_number());
+ EXPECT_EQ(2, host->SourceFrameNumber());
host_impl.ActivateSyncTree();
@@ -531,13 +531,13 @@ TEST(PictureLayerTest, NonMonotonicSourceFrameNumber) {
layer->SetNeedsDisplay();
host1->Composite(base::TimeTicks::Now());
EXPECT_EQ(1, layer->update_count());
- EXPECT_EQ(1, host1->source_frame_number());
+ EXPECT_EQ(1, host1->SourceFrameNumber());
// The source frame number in |host1| is now higher than host2.
layer->SetNeedsDisplay();
host1->Composite(base::TimeTicks::Now());
EXPECT_EQ(2, layer->update_count());
- EXPECT_EQ(2, host1->source_frame_number());
+ EXPECT_EQ(2, host1->SourceFrameNumber());
// Then moved to another LayerTreeHost.
host1->GetLayerTree()->SetRootLayer(nullptr);
@@ -548,7 +548,7 @@ TEST(PictureLayerTest, NonMonotonicSourceFrameNumber) {
layer->SetNeedsDisplay();
host2->Composite(base::TimeTicks::Now());
EXPECT_EQ(3, layer->update_count());
- EXPECT_EQ(1, host2->source_frame_number());
+ EXPECT_EQ(1, host2->SourceFrameNumber());
}
} // namespace
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/layers/surface_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698