Lines Matching refs:rcEnc
194 gralloc_dmaregion_t(ExtendedRCEncoderContext *rcEnc) in gralloc_dmaregion_t()
196 rcEnc->featureInfo_const()->hasSharedSlotsHostMemoryAllocator), in gralloc_dmaregion_t()
203 if (rcEnc->hasDirectMem()) { in gralloc_dmaregion_t()
205 } else if (rcEnc->getDmaVersion() > 0) { in gralloc_dmaregion_t()
230 static bool has_DMA_support(const ExtendedRCEncoderContext *rcEnc) { in has_DMA_support() argument
231 return rcEnc->getDmaVersion() > 0 || rcEnc->hasDirectMem(); in has_DMA_support()
234 static gralloc_dmaregion_t* init_gralloc_dmaregion(ExtendedRCEncoderContext *rcEnc) { in init_gralloc_dmaregion() argument
237 s_grdma = new gralloc_dmaregion_t(rcEnc); in init_gralloc_dmaregion()
242 static void get_gralloc_region(ExtendedRCEncoderContext *rcEnc) { in get_gralloc_region() argument
243 gralloc_dmaregion_t* grdma = init_gralloc_dmaregion(rcEnc); in get_gralloc_region()
288 static bool put_gralloc_region(ExtendedRCEncoderContext *rcEnc, uint32_t sz) { in put_gralloc_region() argument
291 gralloc_dmaregion_t* grdma = init_gralloc_dmaregion(rcEnc); in put_gralloc_region()
293 if (rcEnc->hasDirectMem()) { in put_gralloc_region()
295 } else if (rcEnc->getDmaVersion() > 0) { in put_gralloc_region()
331 static void gralloc_dmaregion_register_ashmem(ExtendedRCEncoderContext *rcEnc, uint32_t sz) { in gralloc_dmaregion_register_ashmem() argument
332 gralloc_dmaregion_t* grdma = init_gralloc_dmaregion(rcEnc); in gralloc_dmaregion_register_ashmem()
338 if (rcEnc->hasDirectMem()) { in gralloc_dmaregion_register_ashmem()
340 } else if (rcEnc->getDmaVersion() > 0) { in gralloc_dmaregion_register_ashmem()
393 static void get_ashmem_region(ExtendedRCEncoderContext *rcEnc, cb_handle_old_t *cb) { in get_ashmem_region() argument
395 dump_regions(rcEnc); in get_ashmem_region()
401 dump_regions(rcEnc); in get_ashmem_region()
404 get_gralloc_region(rcEnc); in get_ashmem_region()
407 static bool put_ashmem_region(ExtendedRCEncoderContext *rcEnc, cb_handle_old_t *cb) { in put_ashmem_region() argument
409 dump_regions(rcEnc); in put_ashmem_region()
412 const bool should_unmap = put_mem_region(rcEnc, cb->getBufferPtr()); in put_ashmem_region()
415 dump_regions(rcEnc); in put_ashmem_region()
418 put_gralloc_region(rcEnc, cb->bufferSize); in put_ashmem_region()
456 ExtendedRCEncoderContext *rcEnc = (hostCon ? hostCon->rcEncoder() : NULL); \
457 bool hasVulkan = rcEnc->featureInfo_const()->hasVulkan; (void)hasVulkan; \
465 ExtendedRCEncoderContext *rcEnc = hostCon->rcEncoder(); \
466 if (!rcEnc) { \
470 bool hasVulkan = rcEnc->featureInfo_const()->hasVulkan; (void)hasVulkan;\
483 gralloc_dmaregion_t* grdma = init_gralloc_dmaregion(rcEnc); in updateHostColorBuffer()
509 const bool hasDMA = has_DMA_support(rcEnc); in updateHostColorBuffer()
527 rcEnc->bindDmaDirectly(grdma->address_space_block.guestPtr(), in updateHostColorBuffer()
530 rcEnc->bindDmaContext(&grdma->goldfish_dma); in updateHostColorBuffer()
537 rcEnc->rcUpdateColorBufferDMA(rcEnc, cb->hostHandle, in updateHostColorBuffer()
562 rcEnc->rcUpdateColorBuffer(rcEnc, cb->hostHandle, in updateHostColorBuffer()
859 const bool hasDMA = has_DMA_support(rcEnc); in gralloc_alloc()
862 if (hostCon && rcEnc) { in gralloc_alloc()
875 …cb->hostHandle = rcEnc->rcCreateColorBufferDMA(rcEnc, w, h, allocFormat, selectedEmuFrameworkForma… in gralloc_alloc()
877 cb->hostHandle = rcEnc->rcCreateColorBuffer(rcEnc, w, h, allocFormat); in gralloc_alloc()
921 get_gralloc_region(rcEnc); // map_buffer(cb, ...) refers here in gralloc_alloc()
953 rcEnc->rcCloseColorBuffer(rcEnc, cb->hostHandle); in gralloc_free()
968 put_gralloc_region(rcEnc, cb->bufferSize); in gralloc_free()
1035 rcEnc->rcOpenColorBuffer2(rcEnc, cb->hostHandle); in gralloc_register_buffer()
1059 get_ashmem_region(rcEnc, cb); in gralloc_register_buffer()
1089 rcEnc->rcCloseColorBuffer(rcEnc, cb->hostHandle); in gralloc_unregister_buffer()
1098 rcEnc->rcCloseColorBuffer(rcEnc, cb->hostHandle); in gralloc_unregister_buffer()
1111 const bool should_unmap = put_ashmem_region(rcEnc, cb); in gralloc_unregister_buffer()
1219 int hostSyncStatus = rcEnc->rcColorBufferCacheFlush(rcEnc, cb->hostHandle, in gralloc_lock()
1238 if (rcEnc->hasYUVCache()) { in gralloc_lock()
1248 rcEnc->rcReadColorBufferYUV(rcEnc, cb->hostHandle, in gralloc_lock()
1254 rcEnc->rcReadColorBuffer(rcEnc, cb->hostHandle, in gralloc_lock()
1266 rcEnc->rcReadColorBuffer(rcEnc, cb->hostHandle, in gralloc_lock()
1271 if (has_DMA_support(rcEnc)) { in gralloc_lock()
1272 gralloc_dmaregion_register_ashmem(rcEnc, cb->bufferSize); in gralloc_lock()