Searched refs:aHardwareBuffer (Results 1 – 3 of 3) sorted by relevance
/external/angle/src/tests/gl_tests/ |
D | ExternalBufferTest.cpp | 53 AHardwareBuffer *aHardwareBuffer = nullptr; in createAndroidHardwareBuffer() local 54 EXPECT_EQ(0, AHardwareBuffer_allocate(&aHardwareBufferDescription, &aHardwareBuffer)); in createAndroidHardwareBuffer() 57 EXPECT_EQ(0, AHardwareBuffer_lock(aHardwareBuffer, AHARDWAREBUFFER_USAGE_CPU_WRITE_RARELY, in createAndroidHardwareBuffer() 61 AHardwareBuffer_describe(aHardwareBuffer, &aHardwareBufferDescription); in createAndroidHardwareBuffer() 65 EXPECT_EQ(0, AHardwareBuffer_unlock(aHardwareBuffer, nullptr)); in createAndroidHardwareBuffer() 66 return aHardwareBuffer; in createAndroidHardwareBuffer() 72 void destroyAndroidHardwareBuffer(AHardwareBuffer *aHardwareBuffer) in destroyAndroidHardwareBuffer() argument 75 AHardwareBuffer_release(aHardwareBuffer); in destroyAndroidHardwareBuffer() 79 void *lockAndroidHardwareBuffer(AHardwareBuffer *aHardwareBuffer) in lockAndroidHardwareBuffer() argument 83 EXPECT_EQ(0, AHardwareBuffer_lock(aHardwareBuffer, AHARDWAREBUFFER_USAGE_CPU_READ_RARELY, in lockAndroidHardwareBuffer() [all …]
|
D | ImageTest.cpp | 495 void writeAHBData(AHardwareBuffer *aHardwareBuffer, in writeAHBData() argument 505 aHardwareBuffer, AHARDWAREBUFFER_USAGE_CPU_WRITE_RARELY, -1, nullptr, &planeInfo); in writeAHBData() 529 res = AHardwareBuffer_unlock(aHardwareBuffer, nullptr); in writeAHBData() 534 int res = AHardwareBuffer_lock(aHardwareBuffer, AHARDWAREBUFFER_USAGE_CPU_WRITE_RARELY, -1, in writeAHBData() 540 AHardwareBuffer_describe(aHardwareBuffer, &aHardwareBufferDescription); in writeAHBData() 553 res = AHardwareBuffer_unlock(aHardwareBuffer, nullptr); in writeAHBData() 580 AHardwareBuffer *aHardwareBuffer = nullptr; in createAndroidHardwareBuffer() local 581 EXPECT_EQ(0, AHardwareBuffer_allocate(&aHardwareBufferDescription, &aHardwareBuffer)); in createAndroidHardwareBuffer() 585 writeAHBData(aHardwareBuffer, width, height, depth, in createAndroidHardwareBuffer() 589 return aHardwareBuffer; in createAndroidHardwareBuffer() [all …]
|
/external/angle/src/common/ |
D | android_util.cpp | 321 AHardwareBuffer *aHardwareBuffer = nullptr; in CreateEGLClientBufferFromAHardwareBuffer() local 322 int res = AHardwareBuffer_allocate(&aHardwareBufferDescription, &aHardwareBuffer); in CreateEGLClientBufferFromAHardwareBuffer() 328 return AHardwareBufferToClientBuffer(aHardwareBuffer); in CreateEGLClientBufferFromAHardwareBuffer()
|