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

Unified Diff: cc/trees/quad_culler.cc

Issue 205503002: cc: Apply occlusion before creating quads in RenderSurfaceImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
« cc/layers/render_surface_impl.cc ('K') | « cc/trees/quad_culler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/quad_culler.cc
diff --git a/cc/trees/quad_culler.cc b/cc/trees/quad_culler.cc
index f161f647f0a2d4a36cd50d2d10150996b6bba740..77ef2bdc7cb1a145013b9a98c4170d7d961e5b95 100644
--- a/cc/trees/quad_culler.cc
+++ b/cc/trees/quad_culler.cc
@@ -44,6 +44,13 @@ gfx::Rect QuadCuller::UnoccludedContentRect(
layer_->render_target(), content_rect, draw_transform);
}
+gfx::Rect QuadCuller::UnoccludedContributingSurfaceContentRect(
+ gfx::Rect& content_rect,
+ gfx::Transform& draw_transform) {
+ return occlusion_tracker_.UnoccludedContributingSurfaceContentRect(
+ layer_, content_rect, draw_transform);
+}
+
static inline bool AppendQuadInternal(
scoped_ptr<DrawQuad> draw_quad,
const gfx::Rect& culled_rect,
« cc/layers/render_surface_impl.cc ('K') | « cc/trees/quad_culler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698