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

Unified Diff: cc/test/layer_test_common.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/layer_test_common.cc
diff --git a/cc/test/layer_test_common.cc b/cc/test/layer_test_common.cc
index 31a16e1fe87b158f5751f09059dc4287e3c9d517..c797d0c39e464f68a664e3d71e5015c8badf5d04 100644
--- a/cc/test/layer_test_common.cc
+++ b/cc/test/layer_test_common.cc
@@ -120,4 +120,16 @@ void LayerTestCommon::LayerImplTest::AppendQuadsWithOcclusion(
layer_impl->DidDraw(resource_provider());
}
+void LayerTestCommon::LayerImplTest::AppendSurfaceQuadsWithOcclusion(
+ RenderSurfaceImpl* surface_impl,
+ const gfx::Rect& occluded) {
+ AppendQuadsData data;
+
+ quad_culler_.clear_lists();
+ quad_culler_.set_occluded_content_rect(occluded);
+ bool for_replica = false;
+ RenderPass::Id id(1, 1);
+ surface_impl->AppendQuads(&quad_culler_, &data, for_replica, id);
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698