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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 2865703002: Remove LayerTreeHostImpl::DrawViewportSize(). (Closed)
Patch Set: Created 3 years, 7 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_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index 6e428798b878b8715e9d463534c0f109db5d52f2..2d57a4e85853de4f34c176c7dd7272791b42378e 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -2297,7 +2297,7 @@ class LayerTreeHostTestCommit : public LayerTreeHostTest {
}
void DidActivateTreeOnThread(LayerTreeHostImpl* impl) override {
- EXPECT_EQ(gfx::Size(20, 20), impl->DrawViewportSize());
+ EXPECT_EQ(gfx::Rect(20, 20), impl->DeviceViewport());
EXPECT_EQ(SK_ColorGRAY, impl->active_tree()->background_color());
EXPECT_EQ(EventListenerProperties::kPassive,
impl->active_tree()->event_listener_properties(
@@ -2569,7 +2569,7 @@ class LayerTreeHostTestDeviceScaleFactorScalesViewportAndLayers
EXPECT_NEAR(impl->active_tree()->device_scale_factor(), 1.5f, 0.00001f);
// Device viewport is scaled.
- EXPECT_EQ(gfx::Size(60, 60), impl->DrawViewportSize());
+ EXPECT_EQ(gfx::Rect(60, 60), impl->DeviceViewport());
FakePictureLayerImpl* root = static_cast<FakePictureLayerImpl*>(
impl->active_tree()->root_layer_for_testing());
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698