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

Unified Diff: cc/occlusion_tracker.cc

Issue 11368149: cc: Define Region::Contains() to be A contains B if all points in B are also in A. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « no previous file | cc/region.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/occlusion_tracker.cc
diff --git a/cc/occlusion_tracker.cc b/cc/occlusion_tracker.cc
index 50a453e186cfc4e4eaa461446ac35361cc03a750..9c536d2e3a29e8977cdff3f1da09771eb5563edb 100644
--- a/cc/occlusion_tracker.cc
+++ b/cc/occlusion_tracker.cc
@@ -314,7 +314,7 @@ static inline bool testContentRectOccluded(const gfx::Rect& contentRect, const W
gfx::RectF transformedRect = MathUtil::mapClippedRect(contentSpaceTransform, gfx::RectF(contentRect));
// Take the gfx::ToEnclosingRect, as we want to include partial pixels in the test.
gfx::Rect targetRect = gfx::IntersectRects(gfx::ToEnclosingRect(transformedRect), clipRectInTarget);
- return targetRect.IsEmpty() || occlusion.Contains(targetRect);
+ return occlusion.Contains(targetRect);
}
template<typename LayerType, typename RenderSurfaceType>
« no previous file with comments | « no previous file | cc/region.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698