MultiPool options header refactoring

Passing MultiPool options to the base pool factories means that we don't have to specialize which options we pass to them.

PiperOrigin-RevId: 488782861
This commit is contained in:
Camillo Lugaresi
2022-11-15 16:13:05 -08:00
committed by Copybara-Service
parent 7ef3185ecb
commit 267476657d
6 changed files with 86 additions and 34 deletions
+8
View File
@@ -369,6 +369,7 @@ cc_library(
}),
deps = [
":gpu_buffer_format",
":multi_pool",
":pixel_buffer_pool_util",
"//mediapipe/framework/port:logging",
"//mediapipe/objc:CFHolder",
@@ -604,6 +605,7 @@ cc_library(
":gl_texture_buffer",
":gpu_buffer",
":gpu_shared_data_header",
":multi_pool",
"//mediapipe/framework:calculator_context",
"//mediapipe/framework:calculator_node",
"//mediapipe/framework/port:logging",
@@ -612,6 +614,11 @@ cc_library(
],
)
cc_library(
name = "multi_pool",
hdrs = ["multi_pool.h"],
)
cc_library(
name = "gpu_buffer_multi_pool",
srcs = ["gpu_buffer_multi_pool.cc"],
@@ -639,6 +646,7 @@ cc_library(
":gl_base",
":gpu_buffer",
":gpu_shared_data_header",
":multi_pool",
"//mediapipe/framework:calculator_context",
"//mediapipe/framework:calculator_node",
"//mediapipe/framework/port:logging",