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:
committed by
Copybara-Service
parent
0d273dd11a
commit
a4fe3eb094
+2
-1
@@ -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",
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user