diff options
Diffstat (limited to 'ui/gfx/blit.cc')
-rw-r--r-- | ui/gfx/blit.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gfx/blit.cc b/ui/gfx/blit.cc index 0c6e6b6..41da3f5 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; |