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

Unified Diff: cc/trees/occlusion_tracker_unittest.cc

Issue 576173003: cc: Move UnoccludedContentRect to Occlusion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: cc/trees/occlusion_tracker_unittest.cc
diff --git a/cc/trees/occlusion_tracker_unittest.cc b/cc/trees/occlusion_tracker_unittest.cc
index e054e914d1d772a10d3b16379f888d5f3cf73819..297a0925adf925f203355b1e1a86c7a9c3545233 100644
--- a/cc/trees/occlusion_tracker_unittest.cc
+++ b/cc/trees/occlusion_tracker_unittest.cc
@@ -90,11 +90,12 @@ class TestOcclusionTrackerWithClip : public TestOcclusionTracker<LayerType> {
}
// Gives an unoccluded sub-rect of |content_rect| in the content space of the
- // layer. Simple wrapper around UnoccludedContentRect.
+ // layer. Simple wrapper around GetUnoccludedContentRect.
gfx::Rect UnoccludedLayerContentRect(const LayerType* layer,
const gfx::Rect& content_rect) const {
DCHECK(layer->visible_content_rect().Contains(content_rect));
- return this->UnoccludedContentRect(content_rect, layer->draw_transform());
+ return this->GetCurrentOcclusionForLayer(layer->draw_transform())
+ .GetUnoccludedContentRect(content_rect);
}
gfx::Rect UnoccludedSurfaceContentRect(const LayerType* layer,
« cc/trees/occlusion_tracker_perftest.cc ('K') | « cc/trees/occlusion_tracker_perftest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698