Home
last modified time | relevance | path

Searched refs:trialDesc (Results 1 – 1 of 1) sorted by relevance

/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp485 AHardwareBuffer_Desc trialDesc = *desc; in AHardwareBuffer_isSupported() local
486 trialDesc.width = 4; in AHardwareBuffer_isSupported()
487 trialDesc.height = desc->format == AHARDWAREBUFFER_FORMAT_BLOB ? 1 : 4; in AHardwareBuffer_isSupported()
489 trialDesc.layers = desc->layers == 6 ? 6 : 12; in AHardwareBuffer_isSupported()
491 trialDesc.layers = desc->layers == 1 ? 1 : 2; in AHardwareBuffer_isSupported()
494 int result = AHardwareBuffer_allocate(&trialDesc, &trialBuffer); in AHardwareBuffer_isSupported()