Add CreateBufferWithoutPool method to base pools

This may not fit exactly in a pool class, but it makes it easy for the multi-pool to find the appropriate method by depending only on the type of the base pool. For the CVPixelBuffer case, the buffer type is CFHolder<CVPixelBufferRef>, and it seems even less appropriate to specialize that template to add such a method there. An alternative would be to allow defining a creation function separately.

PiperOrigin-RevId: 488782054
This commit is contained in:
Camillo Lugaresi
2022-11-15 16:05:53 -08:00
committed by Copybara-Service
parent 0d273dd11a
commit a4fe3eb094
5 changed files with 33 additions and 21 deletions
+2 -1
View File
@@ -368,10 +368,11 @@ cc_library(
],
}),
deps = [
":gpu_buffer",
":gpu_buffer_format",
":pixel_buffer_pool_util",
"//mediapipe/framework/port:logging",
"//mediapipe/objc:CFHolder",
"//mediapipe/objc:util",
"@com_google_absl//absl/synchronization",
],
)