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

Unified Diff: cc/surfaces/display_unittest.cc

Issue 2669183002: Seems incorrect to se device_scale_factor in SetLocalSurfaceId.
Patch Set: Created 3 years, 11 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
« cc/surfaces/display.cc ('K') | « cc/surfaces/display.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display_unittest.cc
diff --git a/cc/surfaces/display_unittest.cc b/cc/surfaces/display_unittest.cc
index cff85557522e7731716f5ae8ba7b5328963dd861..78b10a8b921867012aa864f69227936574d36d60 100644
--- a/cc/surfaces/display_unittest.cc
+++ b/cc/surfaces/display_unittest.cc
@@ -186,7 +186,8 @@ TEST_F(DisplayTest, DisplayDamaged) {
LocalSurfaceId local_surface_id(id_allocator_.GenerateId());
EXPECT_FALSE(scheduler_->damaged);
EXPECT_FALSE(scheduler_->has_new_root_surface);
- display_->SetLocalSurfaceId(local_surface_id, 1.f);
+ display_->SetLocalSurfaceId(local_surface_id);
+ display_->SetDeviceScaleFactor(1.f);
EXPECT_FALSE(scheduler_->damaged);
EXPECT_FALSE(scheduler_->display_resized_);
EXPECT_TRUE(scheduler_->has_new_root_surface);
@@ -436,7 +437,8 @@ TEST_F(DisplayTest, Finish) {
StubDisplayClient client;
display_->Initialize(&client, &manager_);
- display_->SetLocalSurfaceId(local_surface_id, 1.f);
+ display_->SetLocalSurfaceId(local_surface_id);
+ display_->SetDeviceScaleFactor(1.f);
display_->Resize(gfx::Size(100, 100));
« cc/surfaces/display.cc ('K') | « cc/surfaces/display.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698