@@ -165,13 +165,15 @@ struct SurfaceStackCompositor : public Test
165
165
std::shared_ptr<mg::CursorImage>(),
166
166
null_scene_report)},
167
167
stub_buffer (std::make_shared<mtd::StubBuffer>()),
168
+ other_stream (std::make_shared<mc::Stream>(geom::Size { 1 , 1 }, mir_pixel_format_abgr_8888 )),
169
+ other_streams ({ { other_stream, {0 ,0 }, {} } }),
168
170
other_stub_surface{std::make_shared<ms::BasicSurface>(
169
171
nullptr /* session */ ,
170
172
mw::Weak<mf::WlSurface>{},
171
- std::string (" stub " ),
172
- geom::Rectangle{{0 ,0 },{1 ,1 }},
173
+ std::string (" other_stub " ),
174
+ geom::Rectangle{{10 ,0 },{1 ,1 }},
173
175
mir_pointer_unconfined,
174
- streams ,
176
+ other_streams ,
175
177
std::shared_ptr<mg::CursorImage>(),
176
178
null_scene_report)},
177
179
other_stub_buffer (std::make_shared<mtd::StubBuffer>())
@@ -189,6 +191,8 @@ struct SurfaceStackCompositor : public Test
189
191
std::list<ms::StreamInfo> const streams;
190
192
std::shared_ptr<ms::BasicSurface> stub_surface;
191
193
std::shared_ptr<mg::Buffer> stub_buffer;
194
+ std::shared_ptr<mc::Stream> other_stream;
195
+ std::list<ms::StreamInfo> const other_streams;
192
196
std::shared_ptr<ms::BasicSurface> other_stub_surface;
193
197
std::shared_ptr<mg::Buffer> other_stub_buffer;
194
198
CountingDisplaySyncGroup stub_primary_db;
@@ -373,7 +377,7 @@ TEST_F(SurfaceStackCompositor, removing_a_surface_triggers_composition)
373
377
streams.front ().stream ->submit_buffer (stub_buffer);
374
378
stack.add_surface (stub_surface, mi::InputReceptionMode::normal );
375
379
376
- streams .front ().stream ->submit_buffer (other_stub_buffer);
380
+ other_streams .front ().stream ->submit_buffer (other_stub_buffer);
377
381
stack.add_surface (other_stub_surface, mi::InputReceptionMode::normal );
378
382
379
383
mc::MultiThreadedCompositor mt_compositor (
0 commit comments