Lines Matching refs:C2MemoryUsage
42 static_assert((~C2MemoryUsage::PLATFORM_MASK & PASSTHROUGH_USAGE_MASK) == 0, "");
45 C2MemoryUsage C2AndroidMemoryUsage::FromGrallocUsage(uint64_t usage) { in FromGrallocUsage()
47 return C2MemoryUsage( in FromGrallocUsage()
48 ((usage & GRALLOC_USAGE_SW_READ_MASK) ? C2MemoryUsage::CPU_READ : 0) | in FromGrallocUsage()
49 ((usage & GRALLOC_USAGE_SW_WRITE_MASK) ? C2MemoryUsage::CPU_WRITE : 0) | in FromGrallocUsage()
50 ((usage & GRALLOC_USAGE_PROTECTED) ? C2MemoryUsage::READ_PROTECTED : 0) | in FromGrallocUsage()
56 return (((expected & C2MemoryUsage::CPU_READ) ? GRALLOC_USAGE_SW_READ_OFTEN : 0) | in asGrallocUsage()
57 ((expected & C2MemoryUsage::CPU_WRITE) ? GRALLOC_USAGE_SW_WRITE_OFTEN : 0) | in asGrallocUsage()
58 ((expected & C2MemoryUsage::READ_PROTECTED) ? GRALLOC_USAGE_PROTECTED : 0) | in asGrallocUsage()
278 C2Rect rect, C2MemoryUsage usage, C2Fence *fence,
347 C2Rect rect, C2MemoryUsage usage, C2Fence *fence, in map()
605 uint32_t width, uint32_t height, uint32_t format, const C2MemoryUsage &usage,
633 C2MemoryUsage minUsage = { 0, 0 }, maxUsage = { ~(uint64_t)0, ~(uint64_t)0 }; in Impl()
646 uint32_t width, uint32_t height, uint32_t format, const C2MemoryUsage &usage, in newGraphicAllocation()
750 uint32_t width, uint32_t height, uint32_t format, C2MemoryUsage usage, in newGraphicAllocation()