Index: content/common/gpu/image_transport_surface.cc |
diff --git a/content/common/gpu/image_transport_surface.cc b/content/common/gpu/image_transport_surface.cc |
index 47bb204d7d225474af46f82affacd7ae222385f9..d5c1affed3d9d7bbd0385ac8c0fad46f87164900 100644 |
--- a/content/common/gpu/image_transport_surface.cc |
+++ b/content/common/gpu/image_transport_surface.cc |
@@ -32,8 +32,8 @@ void ImageTransportSurface::GetRegionsToCopy( |
const gfx::Rect& previous_damage_rect, |
const gfx::Rect& new_damage_rect, |
std::vector<gfx::Rect>* regions) { |
- gfx::Rect intersection = previous_damage_rect; |
- intersection.Intersect(new_damage_rect); |
+ gfx::Rect intersection = |
+ gfx::IntersectRects(previous_damage_rect, new_damage_rect); |
if (intersection.IsEmpty()) { |
regions->push_back(previous_damage_rect); |