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

Unified Diff: cc/layers/delegated_renderer_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
« no previous file with comments | « no previous file | cc/layers/io_surface_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/delegated_renderer_layer_impl.cc
diff --git a/cc/layers/delegated_renderer_layer_impl.cc b/cc/layers/delegated_renderer_layer_impl.cc
index 199a15bbe7ddd78c25b1c538732018450a2a212f..c050c7d86a369f2110b2eb498b8639a21fde5bb0 100644
--- a/cc/layers/delegated_renderer_layer_impl.cc
+++ b/cc/layers/delegated_renderer_layer_impl.cc
@@ -444,8 +444,10 @@ void DelegatedRendererLayerImpl::AppendRenderPassQuads(
quad_content_to_delegated_target_space.ConcatTransform(draw_transform());
}
- gfx::Rect quad_visible_rect = occlusion_tracker.UnoccludedContentRect(
- delegated_quad->visible_rect, quad_content_to_delegated_target_space);
+ gfx::Rect quad_visible_rect =
+ occlusion_tracker.GetCurrentOcclusionForLayer(
danakj 2014/09/18 01:48:45 Are you going to pass the Occlusion instead of the
vmpstr 2014/09/18 21:45:19 Yeah, I wanna do it separately so if the world exp
+ quad_content_to_delegated_target_space)
+ .GetUnoccludedContentRect(delegated_quad->visible_rect);
if (quad_visible_rect.IsEmpty())
continue;
« no previous file with comments | « no previous file | cc/layers/io_surface_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698