Camillo Lugaresi and Copybara-Service
a4fe3eb094
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
2022-11-15 16:05:53 -08:00
Camillo Lugaresi and Copybara-Service
0d273dd11a
Factor out CvPixelBufferPoolWrapper
...
This is platform-specific and does not need to live in the main multi_pool sources.
PiperOrigin-RevId: 488781934
2022-11-15 16:04:27 -08:00
Camillo Lugaresi and Copybara-Service
ab2dd779e7
Factor out CvTextureCacheManager
...
This is a platform-specific component that is only used with CVPixelBufferPool.
PiperOrigin-RevId: 488781757
2022-11-15 16:02:53 -08:00
Camillo Lugaresi and Copybara-Service
a520d6cc38
Remove FORCE_CONTIGUOUS_PIXEL_BUFFER_ON_IPHONE_SIMULATOR
...
This workaround code is no longer necessary, as per the comment.
PiperOrigin-RevId: 488777606
2022-11-15 15:41:53 -08:00
Camillo Lugaresi and Copybara-Service
3c71c64be1
Remove shared_ptr from SimplePool definition
...
This makes the types more explicit and will help with factoring out platform-specific code.
PiperOrigin-RevId: 488775470
2022-11-15 15:32:57 -08:00
Camillo Lugaresi and Copybara-Service
a67069156e
Use flat_hash_map in ResourceCache
...
This is the recommended hashmap in most cases.
PiperOrigin-RevId: 488772031
2022-11-15 15:23:31 -08:00
Camillo Lugaresi and Copybara-Service
7a87546c30
Internal change
...
PiperOrigin-RevId: 488761646
2022-11-15 14:39:58 -08:00
Camillo Lugaresi and Copybara-Service
6f54308c25
Internal change
...
PiperOrigin-RevId: 488552135
2022-11-14 21:42:41 -08:00
Camillo Lugaresi and Copybara-Service
1a151d9ffb
Internal change
...
PiperOrigin-RevId: 486792117
2022-11-07 16:21:15 -08:00
Camillo Lugaresi and Copybara-Service
a5e4219590
Internal change
...
PiperOrigin-RevId: 481742662
2022-10-17 14:39:17 -07:00
Camillo Lugaresi and Copybara-Service
364b8e8106
Internal change
...
PiperOrigin-RevId: 481210917
2022-10-14 12:47:48 -07:00