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

Unified Diff: cc/trees/layer_tree_impl_unittest.cc

Issue 1633043004: cc: Fix bug where tabs have the wrong scale factor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl_unittest.cc
diff --git a/cc/trees/layer_tree_impl_unittest.cc b/cc/trees/layer_tree_impl_unittest.cc
index 5298ed9c4103585e422a7a4d9eb689e379382e97..393266e9d7f3be9a32160b7fc3852c9147aa71da 100644
--- a/cc/trees/layer_tree_impl_unittest.cc
+++ b/cc/trees/layer_tree_impl_unittest.cc
@@ -2370,5 +2370,13 @@ TEST_F(LayerTreeImplTest, NumLayersSmallTree) {
EXPECT_EQ(4u, host_impl().active_tree()->NumLayers());
}
+TEST_F(LayerTreeImplTest, DeviceScaleFactorNeedsDrawPropertiesUpdate) {
+ host_impl().active_tree()->SetDeviceScaleFactor(1.f);
+ host_impl().active_tree()->UpdateDrawProperties(false);
+ EXPECT_FALSE(host_impl().active_tree()->needs_update_draw_properties());
+ host_impl().active_tree()->SetDeviceScaleFactor(2.f);
+ EXPECT_TRUE(host_impl().active_tree()->needs_update_draw_properties());
+}
+
} // namespace
} // namespace cc
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698