Remove unneeded GPU_SHARED side packet for GlSurfaceSink

PiperOrigin-RevId: 491487092
This commit is contained in:
Camillo Lugaresi 2022-11-28 17:52:35 -08:00 committed by Copybara-Service
parent fc526374ab
commit cc11b45228
2 changed files with 0 additions and 3 deletions

View File

@ -37,7 +37,6 @@ enum { kAttribVertex, kAttribTexturePosition, kNumberOfAttributes };
// VIDEO or index 0: GpuBuffers to be rendered. // VIDEO or index 0: GpuBuffers to be rendered.
// Side inputs: // Side inputs:
// SURFACE: unique_ptr to an EglSurfaceHolder to draw to. // SURFACE: unique_ptr to an EglSurfaceHolder to draw to.
// GPU_SHARED: shared GPU resources.
// //
// See GlSurfaceSinkCalculatorOptions for options. // See GlSurfaceSinkCalculatorOptions for options.
class GlSurfaceSinkCalculator : public Node { class GlSurfaceSinkCalculator : public Node {

View File

@ -231,8 +231,6 @@ int64_t Graph::AddSurfaceOutput(const std::string& output_stream_name) {
*graph_config(), absl::StrCat("egl_surface_sink_", output_stream_name))); *graph_config(), absl::StrCat("egl_surface_sink_", output_stream_name)));
sink_node->set_calculator("GlSurfaceSinkCalculator"); sink_node->set_calculator("GlSurfaceSinkCalculator");
sink_node->add_input_stream(output_stream_name); sink_node->add_input_stream(output_stream_name);
sink_node->add_input_side_packet(
absl::StrCat(kGpuSharedTagName, ":", kGpuSharedSidePacketName));
const std::string input_side_packet_name = const std::string input_side_packet_name =
mediapipe::tool::GetUnusedSidePacketName( mediapipe::tool::GetUnusedSidePacketName(