Index: cc/debug/debug_rect_history.cc |
diff --git a/cc/debug/debug_rect_history.cc b/cc/debug/debug_rect_history.cc |
index e8792e7789e884451ffc7800d38741813fbf7021..a8c50306134a3e8990c3198cf24b470235990772 100644 |
--- a/cc/debug/debug_rect_history.cc |
+++ b/cc/debug/debug_rect_history.cc |
@@ -82,7 +82,7 @@ void DebugRectHistory::SavePaintRects(LayerImpl* layer) { |
float height_scale = layer->content_bounds().height() / |
static_cast<float>(layer->bounds().height()); |
gfx::Rect update_content_rect = gfx::ScaleToEnclosingRect( |
- gfx::ToEnclosingRect(layer->update_rect()), width_scale, height_scale); |
+ layer->update_rect(), width_scale, height_scale); |
debug_rects_.push_back( |
DebugRect(PAINT_RECT_TYPE, |
MathUtil::MapEnclosingClippedRect( |