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

Unified Diff: cc/trees/quad_culler.cc

Issue 205443002: Do not clip inside OcclusionTracker: Contributing Surfaces Edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: occlusion-surface: 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
« no previous file with comments | « cc/trees/occlusion_tracker_unittest.cc ('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 a61e138f73fb4f22da180cfdeac44de6ed6057c7..f161f647f0a2d4a36cd50d2d10150996b6bba740 100644
--- a/cc/trees/quad_culler.cc
+++ b/cc/trees/quad_culler.cc
@@ -9,6 +9,7 @@
#include "cc/layers/layer_impl.h"
#include "cc/quads/debug_border_draw_quad.h"
#include "cc/quads/render_pass.h"
+#include "cc/quads/render_pass_draw_quad.h"
#include "cc/trees/occlusion_tracker.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/transform.h"
@@ -64,8 +65,14 @@ bool QuadCuller::MaybeAppend(scoped_ptr<DrawQuad> draw_quad) {
gfx::Rect culled_rect;
if (for_surface_) {
+ RenderSurfaceImpl* surface = layer_->render_surface();
+ const RenderPassDrawQuad* rpdq =
+ RenderPassDrawQuad::MaterialCast(draw_quad.get());
+ gfx::Transform draw_transform = rpdq->is_replica
enne (OOO) 2014/03/19 22:53:17 Replicas. :(
+ ? surface->replica_draw_transform()
+ : surface->draw_transform();
culled_rect = occlusion_tracker_.UnoccludedContributingSurfaceContentRect(
- layer_, false, draw_quad->visible_rect);
+ layer_, draw_quad->visible_rect, draw_transform);
} else {
culled_rect =
occlusion_tracker_.UnoccludedContentRect(layer_->render_target(),
« no previous file with comments | « cc/trees/occlusion_tracker_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698