Index: cc/layer_tiling_data.cc |
diff --git a/cc/layer_tiling_data.cc b/cc/layer_tiling_data.cc |
index b3ba58d6b0a3be4b44e587e45c2f306bd9410a9a..10086da3a4fd4bf34c9d3a20b187050d6a06359c 100644 |
--- a/cc/layer_tiling_data.cc |
+++ b/cc/layer_tiling_data.cc |
@@ -7,6 +7,8 @@ |
#include "cc/layer_tiling_data.h" |
+#include "IntRect.h" |
+#include "IntSize.h" |
#include "base/logging.h" |
using namespace std; |
@@ -117,7 +119,7 @@ Region LayerTilingData::opaqueRegionInContentRect(const gfx::Rect& contentRect) |
continue; |
gfx::Rect tileOpaqueRect = gfx::IntersectRects(contentRect, tile->opaqueRect()); |
- opaqueRegion.unite(cc::IntRect(tileOpaqueRect)); |
+ opaqueRegion.Union(tileOpaqueRect); |
} |
} |
return opaqueRegion; |