走偏的一版

This commit is contained in:
2026-08-14 09:12:42 +08:00
parent ba820afbcb
commit 4a73f96475
45 changed files with 2944 additions and 1408 deletions
@@ -49,6 +49,7 @@ TEST(low_latency_strategy_test, replacement_disabled_preserves_pending_frame_and
auto frame = strategy.acquire_painter();
frame->value = 1;
}
EXPECT_EQ(strategy.pending_frame_count(), 1U);
std::promise<void> producer_started;
auto producer_started_future = producer_started.get_future();
@@ -65,8 +66,10 @@ TEST(low_latency_strategy_test, replacement_disabled_preserves_pending_frame_and
ASSERT_TRUE(frame);
EXPECT_EQ(frame->value, 1);
}
EXPECT_EQ(strategy.pending_frame_count(), 0U);
ASSERT_EQ(producer.wait_for(1s), std::future_status::ready);
producer.get();
EXPECT_EQ(strategy.pending_frame_count(), 1U);
{
auto frame = strategy.acquire_renderer();
ASSERT_TRUE(frame);