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

Unified Diff: cc/resources/layer_tiling_data.cc

Issue 565043002: cc: Remove the opaque rect return-parameter from ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contentlayerclientopaque: build Created 6 years, 3 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/resources/layer_updater.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 846652ad8866853a0f81d5e046e820b0cac31df3..63b003628c346ae02898e785fb127fd7d3844de7 100644
--- a/cc/resources/layer_tiling_data.cc
+++ b/cc/resources/layer_tiling_data.cc
@@ -92,28 +92,6 @@ gfx::Rect LayerTilingData::TileRect(const Tile* tile) const {
return tile_rect;
}
-SimpleEnclosedRegion LayerTilingData::OpaqueRegionInContentRect(
- const gfx::Rect& content_rect) const {
- if (content_rect.IsEmpty())
- return SimpleEnclosedRegion();
-
- Region opaque_region;
- int left, top, right, bottom;
- ContentRectToTileIndices(content_rect, &left, &top, &right, &bottom);
- for (int j = top; j <= bottom; ++j) {
- for (int i = left; i <= right; ++i) {
- Tile* tile = TileAt(i, j);
- if (!tile)
- continue;
-
- gfx::Rect tile_opaque_rect =
- gfx::IntersectRects(content_rect, tile->opaque_rect());
- opaque_region.Union(tile_opaque_rect);
- }
- }
- return SimpleEnclosedRegion(opaque_region);
-}
-
void LayerTilingData::SetTilingSize(const gfx::Size& tiling_size) {
tiling_data_.SetTilingSize(tiling_size);
if (tiling_size.IsEmpty()) {
« no previous file with comments | « cc/resources/layer_tiling_data.h ('k') | cc/resources/layer_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698