Index: cc/surfaces/surface_aggregator_unittest.cc |
diff --git a/cc/surfaces/surface_aggregator_unittest.cc b/cc/surfaces/surface_aggregator_unittest.cc |
index 0ba3a146963294844e55cb6535817f9e826e22ac..7ab547877eb44d44e3a37918d2027bf4db7ab518 100644 |
--- a/cc/surfaces/surface_aggregator_unittest.cc |
+++ b/cc/surfaces/surface_aggregator_unittest.cc |
@@ -1107,6 +1107,8 @@ |
SurfaceId grandchild_surface_id(grandchild_support->frame_sink_id(), |
grandchild_local_surface_id); |
+ grandchild_support->SubmitCompositorFrame(grandchild_local_surface_id, |
+ test::MakeCompositorFrame()); |
std::unique_ptr<RenderPass> grandchild_pass = RenderPass::Create(); |
gfx::Rect output_rect(SurfaceSize()); |
gfx::Rect damage_rect(SurfaceSize()); |
@@ -1121,6 +1123,8 @@ |
LocalSurfaceId child_one_local_surface_id = allocator_.GenerateId(); |
SurfaceId child_one_surface_id(child_one_support->frame_sink_id(), |
child_one_local_surface_id); |
+ child_one_support->SubmitCompositorFrame(child_one_local_surface_id, |
+ test::MakeCompositorFrame()); |
std::unique_ptr<RenderPass> child_one_pass = RenderPass::Create(); |
child_one_pass->SetNew(pass_id, output_rect, damage_rect, |
@@ -1141,6 +1145,8 @@ |
LocalSurfaceId child_two_local_surface_id = allocator_.GenerateId(); |
SurfaceId child_two_surface_id(child_two_support->frame_sink_id(), |
child_two_local_surface_id); |
+ child_two_support->SubmitCompositorFrame(child_two_local_surface_id, |
+ test::MakeCompositorFrame()); |
std::unique_ptr<RenderPass> child_two_pass = RenderPass::Create(); |
child_two_pass->SetNew(pass_id, output_rect, damage_rect, |
@@ -1953,7 +1959,7 @@ |
SurfaceId surface_id) { |
CompositorFrame frame = test::MakeEmptyCompositorFrame(); |
std::unique_ptr<RenderPass> pass = RenderPass::Create(); |
- pass->SetNew(1, gfx::Rect(0, 0, 20, 20), gfx::Rect(), gfx::Transform()); |
+ pass->id = 1; |
SharedQuadState* sqs = pass->CreateAndAppendSharedQuadState(); |
sqs->opacity = 1.f; |
if (child_id.is_valid()) { |
@@ -2035,13 +2041,16 @@ |
LocalSurfaceId local_surface_id(7u, base::UnguessableToken::Create()); |
SurfaceId surface_id(support->frame_sink_id(), local_surface_id); |
- CompositorFrame frame = test::MakeCompositorFrame(); |
+ CompositorFrame frame = test::MakeEmptyCompositorFrame(); |
+ std::unique_ptr<RenderPass> pass = RenderPass::Create(); |
+ pass->id = 1; |
TransferableResource resource; |
resource.id = 11; |
// ResourceProvider is software but resource is not, so it should be |
// ignored. |
resource.is_software = false; |
frame.resource_list.push_back(resource); |
+ frame.render_pass_list.push_back(std::move(pass)); |
support->SubmitCompositorFrame(local_surface_id, std::move(frame)); |
CompositorFrame returned_frame = aggregator_->Aggregate(surface_id); |
@@ -2193,7 +2202,7 @@ |
{ |
std::unique_ptr<RenderPass> pass = RenderPass::Create(); |
- pass->SetNew(1, gfx::Rect(0, 0, 20, 20), gfx::Rect(), gfx::Transform()); |
+ pass->id = 1; |
SharedQuadState* sqs = pass->CreateAndAppendSharedQuadState(); |
sqs->opacity = 1.f; |
SurfaceDrawQuad* surface_quad = |