提升观测系统
隔离taskflow
This commit is contained in:
@@ -95,12 +95,12 @@ TEST(axis_render, scene_prepares_and_paints_uncached_axis_into_frame) {
|
||||
}).has_value()));
|
||||
int paint_extension_calls{};
|
||||
int completion_calls{};
|
||||
axis->paint_taskflow().emplace(
|
||||
[&] { ++paint_extension_calls; }).name("test.axis.paint.extension");
|
||||
scene->completion_taskflow().emplace([&] {
|
||||
axis->paint_taskflow().add(
|
||||
"test.axis.paint.extension", [&] { ++paint_extension_calls; });
|
||||
scene->completion_taskflow().add("test.scene_2d.completion", [&] {
|
||||
EXPECT_EQ(paint_extension_calls, 1);
|
||||
++completion_calls;
|
||||
}).name("test.scene_2d.completion");
|
||||
});
|
||||
const auto frame = render_frame(scene.get());
|
||||
EXPECT_EQ(paint_extension_calls, 1);
|
||||
EXPECT_EQ(completion_calls, 1);
|
||||
|
||||
Reference in New Issue
Block a user