双缓冲先加上

This commit is contained in:
2026-08-11 17:48:32 +08:00
parent 542637ede4
commit 0327d71536
31 changed files with 1605 additions and 2248 deletions
+9 -18
View File
@@ -265,7 +265,7 @@ TEST(RenderiveWebGallery, BackendMenuMapsRetainedControlApis) {
api_text += action.at("api").get<std::string>() + '\n';
}
}
constexpr std::array<std::string_view, 42> required{
constexpr std::array<std::string_view, 41> required{
"Plot_Core::set_background_color", "Plot_Core::set_max_render_fps",
"Plot_Core::activate_view", "Plot_Core::remove_renderable",
"Renderable::set_visible", "Renderable::set_cache_mode", "Renderable::set_object_name",
@@ -273,16 +273,16 @@ TEST(RenderiveWebGallery, BackendMenuMapsRetainedControlApis) {
"Abs_Axis::set_pixel_length", "Abs_Axis::set_locale", "Abs_Axis::set_unit_text_font",
"Axis::set_coord_range", "Axis::set_coord_start", "Axis::set_coord_length",
"Axis::set_use_wheel", "Axis::set_use_drag", "Time_Axis::set_time_format",
"Time_Axis::append_time", "Spectrum::set_frequency_axis", "Spectrum::set_frequency_point_size",
"Spectrum::set_interpolation_mode", "Spectrum::set_current_pen", "Spectrum::set_max_brush",
"Time_Axis::append_time", "Spectrum::set<&Properties::frequency_point_size>",
"Spectrum::set<&Properties::interpolation_mode>", "Spectrum::set<&Properties::current_pen>", "Spectrum::set<&Properties::max_brush>",
"Spectrum::update_samples", "Spectrum::power_at", "Spectrum::add_custom_marker",
"Spectrum::set_marker_frequency", "Waterfall::set_frequency_range",
"Waterfall::set_interpolation_mode", "Waterfall::append_row", "Color_Map::set_colors",
"Afterglow::set_attenuation_rate", "Afterglow::append_spectrum",
"Sweep_Spectrum::set_bins_per_block", "Sweep_Spectrum::append_block",
"Frequency_Trace::Builder::set_pen", "Selection_Rectangle_Overlay::set_selection_brush",
"Spectrum::set_marker_frequency", "Waterfall::set<&Properties::frequency_range>",
"Waterfall::set<&Properties::interpolation_mode>", "Waterfall::append_row", "Waterfall::set<&Properties::color_map>",
"Afterglow::set<&Properties::attenuation_rate>", "Afterglow::append_spectrum",
"Sweep_Spectrum::set<&Properties::bins_per_block>", "Sweep_Spectrum::append_block",
"Frequency_Trace::set<&Properties::pen>", "Selection_Rectangle_Overlay::set<&Properties::selection_brush>",
"Selection_Rectangle_Overlay::clear_selected_regions",
"Constellation_Diagram::Builder::set_type", "Constellation_Diagram::fit_square_to_axes"
"Constellation_Diagram::set<&Properties::type>", "Constellation_Diagram::fit_square_to_axes"
};
for (const auto api : required)
EXPECT_NE(api_text.find(api), std::string::npos) << api;
@@ -595,9 +595,6 @@ TEST(RenderiveWebGallery, CanvasSpecificActionsProduceObservableStateChanges) {
telemetry = invoke_action(session, "append_tick_row").at("telemetry");
EXPECT_EQ(telemetry.at("waterfall").at("row_count").get<std::size_t>(),
before_rows + 2);
EXPECT_NE(invoke_action(session, "rebind_axes").at("telemetry")
.at("last_action_result").get<std::string>().find("valid"),
std::string::npos);
}
{
Gallery_Plot_Session session;
@@ -641,9 +638,6 @@ TEST(RenderiveWebGallery, CanvasSpecificActionsProduceObservableStateChanges) {
const auto telemetry = invoke_action(session, "append_points").at("telemetry");
EXPECT_EQ(telemetry.at("constellation").at("point_count").get<std::size_t>(),
before + 24);
EXPECT_NE(invoke_action(session, "read_axes").at("telemetry")
.at("last_action_result").get<std::string>().find("valid"),
std::string::npos);
}
}
@@ -712,9 +706,6 @@ TEST(RenderiveWebGallery, SelectionOverlayPointerLifecycleCreatesAndClearsRegion
EXPECT_EQ(observe_telemetry(session).at("selection_regions"), 1);
EXPECT_EQ(invoke_action(session, "clear_selection").at("telemetry")
.at("selection_regions"), 0);
const auto rebound = invoke_action(session, "rebind_selection_axes").at("telemetry");
EXPECT_NE(rebound.at("last_action_result").get<std::string>().find("Selection Overlay"),
std::string::npos);
}
TEST(RenderiveWebGallery, EveryCanvasAcceptsTheCompleteWebEventSetAndStillRendersPixels) {