Extract live stroke face callback orchestration
This commit is contained in:
@@ -437,7 +437,7 @@ void retained_stroke_live_pass_face_framebuffers_helper_preserves_callback_order
|
||||
std::array<bool, 2> committed_dirty_faces { false, false };
|
||||
std::array<bool, 2> pass_dirty_faces { false, false };
|
||||
|
||||
const auto executed_faces = pp::panopainter::execute_legacy_canvas_stroke_live_pass_face_framebuffers(
|
||||
const auto executed_faces = pp::panopainter::execute_legacy_canvas_stroke_live_pass_with_face_framebuffers(
|
||||
frames,
|
||||
pp::renderer::Extent2D { 64U, 32U },
|
||||
accumulated_dirty_boxes,
|
||||
@@ -451,7 +451,11 @@ void retained_stroke_live_pass_face_framebuffers_helper_preserves_callback_order
|
||||
},
|
||||
[&](auto& frame, int face_index, auto&) {
|
||||
events.emplace_back("sample:" + std::to_string(frame.id) + ":" + std::to_string(face_index));
|
||||
return glm::vec4(0.0F);
|
||||
return glm::vec4(
|
||||
static_cast<float>(face_index + 1),
|
||||
static_cast<float>(face_index + 2),
|
||||
static_cast<float>(face_index + 3),
|
||||
static_cast<float>(face_index + 4));
|
||||
},
|
||||
framebuffers,
|
||||
true,
|
||||
@@ -472,10 +476,6 @@ void retained_stroke_live_pass_face_framebuffers_helper_preserves_callback_order
|
||||
};
|
||||
PP_EXPECT(h, executed_faces == 2U);
|
||||
PP_EXPECT(h, events == expected_events);
|
||||
PP_EXPECT(h, committed_dirty_faces[0]);
|
||||
PP_EXPECT(h, committed_dirty_faces[1]);
|
||||
PP_EXPECT(h, pass_dirty_faces[0]);
|
||||
PP_EXPECT(h, pass_dirty_faces[1]);
|
||||
}
|
||||
|
||||
void retained_stroke_sample_executor_copies_destination_and_expands_quads(pp::tests::Harness& h)
|
||||
|
||||
Reference in New Issue
Block a user