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

Unified Diff: cc/layers/video_layer_impl.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/layers/video_layer_impl.cc
diff --git a/cc/layers/video_layer_impl.cc b/cc/layers/video_layer_impl.cc
index 819b542af26cda46bec49c192a7b7d5cb03e9092..4bfd1cd58030af5e1f72715966d31b7aa0ee097b 100644
--- a/cc/layers/video_layer_impl.cc
+++ b/cc/layers/video_layer_impl.cc
@@ -177,7 +177,8 @@ void VideoLayerImpl::AppendQuads(
gfx::Size coded_size = frame_->coded_size();
gfx::Rect visible_quad_rect =
- occlusion_tracker.UnoccludedContentRect(quad_rect, transform);
+ occlusion_tracker.GetCurrentOcclusionForLayer(transform)
+ .GetUnoccludedContentRect(quad_rect);
if (visible_quad_rect.IsEmpty())
return;

Powered by Google App Engine
This is Rietveld 408576698