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

Unified Diff: cc/test/mock_quad_culler.h

Issue 205503002: cc: Apply occlusion before creating quads in RenderSurfaceImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: append-rendersurface: headers 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/test/layer_test_common.cc ('k') | cc/test/mock_quad_culler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/mock_quad_culler.h
diff --git a/cc/test/mock_quad_culler.h b/cc/test/mock_quad_culler.h
index 543b8ec190646a9c5d091a698afa9e99908ab7be..2d9486b17c8cf8c3c7b8cad0df7acb267028227b 100644
--- a/cc/test/mock_quad_culler.h
+++ b/cc/test/mock_quad_culler.h
@@ -26,6 +26,9 @@ class MockQuadCuller : public QuadSink {
virtual gfx::Rect UnoccludedContentRect(const gfx::Rect& content_rect,
const gfx::Transform& draw_transform)
OVERRIDE;
+ virtual gfx::Rect UnoccludedContributingSurfaceContentRect(
+ const gfx::Rect& content_rect,
+ const gfx::Transform& draw_transform) OVERRIDE;
virtual bool MaybeAppend(scoped_ptr<DrawQuad> draw_quad) OVERRIDE;
virtual void Append(scoped_ptr<DrawQuad> draw_quad) OVERRIDE;
@@ -38,6 +41,11 @@ class MockQuadCuller : public QuadSink {
occluded_content_rect_ = occluded;
}
+ void set_occluded_content_rect_for_contributing_surface(
+ const gfx::Rect& occluded) {
+ occluded_content_rect_for_contributing_surface_ = occluded;
+ }
+
void clear_lists() {
active_quad_list_->clear();
active_shared_quad_state_list_->clear();
@@ -49,6 +57,7 @@ class MockQuadCuller : public QuadSink {
SharedQuadStateList* active_shared_quad_state_list_;
SharedQuadStateList shared_quad_state_storage_;
gfx::Rect occluded_content_rect_;
+ gfx::Rect occluded_content_rect_for_contributing_surface_;
};
} // namespace cc
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/test/mock_quad_culler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698