Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: cc/resources/layer_tiling_data.cc

Issue 202523002: cc: Replace Region with SimpleEnclosedRegion for occlusion tracking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simpleregion: . Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/layer_tiling_data.h ('k') | cc/test/test_occlusion_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/layer_tiling_data.cc
diff --git a/cc/resources/layer_tiling_data.cc b/cc/resources/layer_tiling_data.cc
index fe3f4c5453f4d57f2b76db75808fba8fca824d63..846652ad8866853a0f81d5e046e820b0cac31df3 100644
--- a/cc/resources/layer_tiling_data.cc
+++ b/cc/resources/layer_tiling_data.cc
@@ -7,6 +7,8 @@
#include <vector>
#include "base/logging.h"
+#include "cc/base/region.h"
+#include "cc/base/simple_enclosed_region.h"
namespace cc {
@@ -90,10 +92,10 @@ gfx::Rect LayerTilingData::TileRect(const Tile* tile) const {
return tile_rect;
}
-Region LayerTilingData::OpaqueRegionInContentRect(
+SimpleEnclosedRegion LayerTilingData::OpaqueRegionInContentRect(
const gfx::Rect& content_rect) const {
if (content_rect.IsEmpty())
- return Region();
+ return SimpleEnclosedRegion();
Region opaque_region;
int left, top, right, bottom;
@@ -109,7 +111,7 @@ Region LayerTilingData::OpaqueRegionInContentRect(
opaque_region.Union(tile_opaque_rect);
}
}
- return opaque_region;
+ return SimpleEnclosedRegion(opaque_region);
}
void LayerTilingData::SetTilingSize(const gfx::Size& tiling_size) {
« no previous file with comments | « cc/resources/layer_tiling_data.h ('k') | cc/test/test_occlusion_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698