Index: ui/gfx/blit.cc |
diff --git a/ui/gfx/blit.cc b/ui/gfx/blit.cc |
index 0c6e6b6bca82466971c593695317bc1c385d6e48..41da3f54f8a741365c62216ece2ee3d9be0ebd11 100644 |
--- a/ui/gfx/blit.cc |
+++ b/ui/gfx/blit.cc |
@@ -152,8 +152,8 @@ void ScrollCanvas(SkCanvas* canvas, |
SkAutoLockPixels lock(bitmap); |
// We expect all coords to be inside the canvas, so clip here. |
- gfx::Rect clip = in_clip; |
- clip.Intersect(gfx::Rect(0, 0, bitmap.width(), bitmap.height())); |
+ gfx::Rect clip = gfx::IntersectRects( |
+ in_clip, gfx::Rect(0, 0, bitmap.width(), bitmap.height())); |
// Compute the set of pixels we'll actually end up painting. |
gfx::Rect dest_rect = clip; |