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

Unified Diff: cc/test/mock_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
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..1f76f7da7268c9c83b0b1bb216e4a3318e77855a 100644
--- a/cc/test/mock_quad_culler.cc
+++ b/cc/test/mock_quad_culler.cc
@@ -30,6 +30,16 @@ SharedQuadState* MockQuadCuller::UseSharedQuadState(
gfx::Rect MockQuadCuller::UnoccludedContentRect(
const gfx::Rect& content_rect,
const gfx::Transform& draw_transform) {
+ DCHECK(draw_transform.IsIdentity());
+ gfx::Rect result = content_rect;
+ result.Subtract(occluded_content_rect_);
+ return result;
+}
+
+gfx::Rect MockQuadCuller::UnoccludedContributingSurfaceContentRect(
+ gfx::Rect& content_rect,
+ gfx::Transform& draw_transform) {
+ DCHECK(draw_transform.IsIdentity());
gfx::Rect result = content_rect;
result.Subtract(occluded_content_rect_);
return result;

Powered by Google App Engine
This is Rietveld 408576698