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 |