Index: cc/trees/layer_tree_host_impl_unittest.cc |
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc |
index 911b4ea976e917a153e9af834044fa85d213fb52..1e73b313a501209e3efaa76edcbe985baaa0dbfd 100644 |
--- a/cc/trees/layer_tree_host_impl_unittest.cc |
+++ b/cc/trees/layer_tree_host_impl_unittest.cc |
@@ -5006,6 +5006,9 @@ class TestRenderer : public GLRenderer, public RendererClient { |
virtual gfx::Rect DeviceViewport() const OVERRIDE { |
return gfx::Rect(viewport_size_); |
} |
+ virtual gfx::Rect DeviceClip() const OVERRIDE { |
+ return DeviceViewport(); |
+ } |
virtual float DeviceScaleFactor() const OVERRIDE { |
return 1.f; |
} |
@@ -5441,7 +5444,7 @@ TEST_F(LayerTreeHostImplTestWithDelegatingRenderer, FrameIncludesDamageRect) { |
host_impl_->active_tree()->SetRootLayer(root.PassAs<LayerImpl>()); |
// Draw a frame. In the first frame, the entire viewport should be damaged. |
- gfx::Rect full_frame_damage = gfx::Rect(host_impl_->device_viewport_size()); |
+ gfx::Rect full_frame_damage(host_impl_->DrawViewportSize()); |
DrawFrameAndTestDamage(full_frame_damage); |
// The second frame has damage that doesn't touch the child layer. Its quads |