Index: cc/test/mock_quad_culler.cc |
diff --git a/cc/test/mock_quad_culler.cc b/cc/test/mock_quad_culler.cc |
index d15f126aed5fc79b51fb756e21259abe58bb8378..54d631c54983849f553f46b86e5d4452b523fbbb 100644 |
--- a/cc/test/mock_quad_culler.cc |
+++ b/cc/test/mock_quad_culler.cc |
@@ -30,11 +30,22 @@ SharedQuadState* MockQuadCuller::UseSharedQuadState( |
gfx::Rect MockQuadCuller::UnoccludedContentRect( |
const gfx::Rect& content_rect, |
const gfx::Transform& draw_transform) { |
+ DCHECK(draw_transform.IsIdentity() || occluded_content_rect_.IsEmpty()); |
gfx::Rect result = content_rect; |
result.Subtract(occluded_content_rect_); |
return result; |
} |
+gfx::Rect MockQuadCuller::UnoccludedContributingSurfaceContentRect( |
+ const gfx::Rect& content_rect, |
+ const gfx::Transform& draw_transform) { |
+ DCHECK(draw_transform.IsIdentity() || |
+ occluded_content_rect_for_contributing_surface_.IsEmpty()); |
+ gfx::Rect result = content_rect; |
+ result.Subtract(occluded_content_rect_for_contributing_surface_); |
+ return result; |
+} |
+ |
bool MockQuadCuller::MaybeAppend(scoped_ptr<DrawQuad> draw_quad) { |
if (!draw_quad->rect.IsEmpty()) { |
active_quad_list_->push_back(draw_quad.Pass()); |