Home
last modified time | relevance | path

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

/external/angle/src/common/
Dandroid_util.cpp313 AHardwareBuffer_Desc aHardwareBufferDescription = {}; in CreateEGLClientBufferFromAHardwareBuffer() local
314 aHardwareBufferDescription.width = static_cast<uint32_t>(width); in CreateEGLClientBufferFromAHardwareBuffer()
315 aHardwareBufferDescription.height = static_cast<uint32_t>(height); in CreateEGLClientBufferFromAHardwareBuffer()
316 aHardwareBufferDescription.layers = static_cast<uint32_t>(depth); in CreateEGLClientBufferFromAHardwareBuffer()
317 aHardwareBufferDescription.format = androidFormat; in CreateEGLClientBufferFromAHardwareBuffer()
318 aHardwareBufferDescription.usage = GetAHBUsage(usage); in CreateEGLClientBufferFromAHardwareBuffer()
322 int res = AHardwareBuffer_allocate(&aHardwareBufferDescription, &aHardwareBuffer); in CreateEGLClientBufferFromAHardwareBuffer()
/external/angle/src/tests/gl_tests/
DExternalBufferTest.cpp43 AHardwareBuffer_Desc aHardwareBufferDescription = {}; in createAndroidHardwareBuffer() local
44 aHardwareBufferDescription.width = size; in createAndroidHardwareBuffer()
45 aHardwareBufferDescription.height = 1; in createAndroidHardwareBuffer()
46 aHardwareBufferDescription.layers = 1; in createAndroidHardwareBuffer()
47 aHardwareBufferDescription.format = AHARDWAREBUFFER_FORMAT_BLOB; in createAndroidHardwareBuffer()
48 aHardwareBufferDescription.usage = in createAndroidHardwareBuffer()
50 aHardwareBufferDescription.stride = 0; in createAndroidHardwareBuffer()
54 EXPECT_EQ(0, AHardwareBuffer_allocate(&aHardwareBufferDescription, &aHardwareBuffer)); in createAndroidHardwareBuffer()
61 AHardwareBuffer_describe(aHardwareBuffer, &aHardwareBufferDescription); in createAndroidHardwareBuffer()
DImageTest.cpp539 AHardwareBuffer_Desc aHardwareBufferDescription = {}; in writeAHBData()
540 AHardwareBuffer_describe(aHardwareBuffer, &aHardwareBufferDescription); in writeAHBData()
541 const uint32_t stride = aHardwareBufferDescription.stride; in writeAHBData()
567 AHardwareBuffer_Desc aHardwareBufferDescription = {}; in createAndroidHardwareBuffer() local
568 aHardwareBufferDescription.width = width; in createAndroidHardwareBuffer()
569 aHardwareBufferDescription.height = height; in createAndroidHardwareBuffer()
570 aHardwareBufferDescription.layers = depth; in createAndroidHardwareBuffer()
571 aHardwareBufferDescription.format = androidFormat; in createAndroidHardwareBuffer()
572 aHardwareBufferDescription.usage = AHARDWAREBUFFER_USAGE_CPU_WRITE_RARELY | in createAndroidHardwareBuffer()
575 aHardwareBufferDescription.stride = 0; in createAndroidHardwareBuffer()
[all …]