Loading libs/nativewindow/include/android/hardware_buffer.h +8 −8 Original line number Original line Diff line number Diff line Loading @@ -162,25 +162,25 @@ typedef struct AHardwareBuffer AHardwareBuffer; * any reason. * any reason. */ */ int AHardwareBuffer_allocate(const AHardwareBuffer_Desc* desc, int AHardwareBuffer_allocate(const AHardwareBuffer_Desc* desc, AHardwareBuffer** outBuffer); AHardwareBuffer** outBuffer) __INTRODUCED_IN(26); /** /** * Acquire a reference on the given AHardwareBuffer object. This prevents the * Acquire a reference on the given AHardwareBuffer object. This prevents the * object from being deleted until the last reference is removed. * object from being deleted until the last reference is removed. */ */ void AHardwareBuffer_acquire(AHardwareBuffer* buffer); void AHardwareBuffer_acquire(AHardwareBuffer* buffer) __INTRODUCED_IN(26); /** /** * Remove a reference that was previously acquired with * Remove a reference that was previously acquired with * AHardwareBuffer_acquire(). * AHardwareBuffer_acquire(). */ */ void AHardwareBuffer_release(AHardwareBuffer* buffer); void AHardwareBuffer_release(AHardwareBuffer* buffer) __INTRODUCED_IN(26); /** /** * Return a description of the AHardwareBuffer in the passed * Return a description of the AHardwareBuffer in the passed * AHardwareBuffer_Desc struct. * AHardwareBuffer_Desc struct. */ */ void AHardwareBuffer_describe(const AHardwareBuffer* buffer, void AHardwareBuffer_describe(const AHardwareBuffer* buffer, AHardwareBuffer_Desc* outDesc); AHardwareBuffer_Desc* outDesc) __INTRODUCED_IN(26); /* /* * Lock the AHardwareBuffer for reading or writing, depending on the usage flags * Lock the AHardwareBuffer for reading or writing, depending on the usage flags Loading Loading @@ -216,7 +216,7 @@ void AHardwareBuffer_describe(const AHardwareBuffer* buffer, * number of the lock fails for any reason. * number of the lock fails for any reason. */ */ int AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, int AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, int32_t fence, const ARect* rect, void** outVirtualAddress); int32_t fence, const ARect* rect, void** outVirtualAddress) __INTRODUCED_IN(26); /* /* * Unlock the AHardwareBuffer; must be called after all changes to the buffer * Unlock the AHardwareBuffer; must be called after all changes to the buffer Loading @@ -228,7 +228,7 @@ int AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, * Returns NO_ERROR on success, BAD_VALUE if the buffer is NULL, or an error * Returns NO_ERROR on success, BAD_VALUE if the buffer is NULL, or an error * number of the lock fails for any reason. * number of the lock fails for any reason. */ */ int AHardwareBuffer_unlock(AHardwareBuffer* buffer, int32_t* fence); int AHardwareBuffer_unlock(AHardwareBuffer* buffer, int32_t* fence) __INTRODUCED_IN(26); /* /* * Send the AHardwareBuffer to an AF_UNIX socket. * Send the AHardwareBuffer to an AF_UNIX socket. Loading @@ -236,7 +236,7 @@ int AHardwareBuffer_unlock(AHardwareBuffer* buffer, int32_t* fence); * Returns NO_ERROR on success, BAD_VALUE if the buffer is NULL, or an error * Returns NO_ERROR on success, BAD_VALUE if the buffer is NULL, or an error * number of the lock fails for any reason. * number of the lock fails for any reason. */ */ int AHardwareBuffer_sendHandleToUnixSocket(const AHardwareBuffer* buffer, int socketFd); int AHardwareBuffer_sendHandleToUnixSocket(const AHardwareBuffer* buffer, int socketFd) __INTRODUCED_IN(26); /* /* * Receive the AHardwareBuffer from an AF_UNIX socket. * Receive the AHardwareBuffer from an AF_UNIX socket. Loading @@ -244,7 +244,7 @@ int AHardwareBuffer_sendHandleToUnixSocket(const AHardwareBuffer* buffer, int so * Returns NO_ERROR on success, BAD_VALUE if the buffer is NULL, or an error * Returns NO_ERROR on success, BAD_VALUE if the buffer is NULL, or an error * number of the lock fails for any reason. * number of the lock fails for any reason. */ */ int AHardwareBuffer_recvHandleFromUnixSocket(int socketFd, AHardwareBuffer** outBuffer); int AHardwareBuffer_recvHandleFromUnixSocket(int socketFd, AHardwareBuffer** outBuffer) __INTRODUCED_IN(26); __END_DECLS __END_DECLS Loading Loading
libs/nativewindow/include/android/hardware_buffer.h +8 −8 Original line number Original line Diff line number Diff line Loading @@ -162,25 +162,25 @@ typedef struct AHardwareBuffer AHardwareBuffer; * any reason. * any reason. */ */ int AHardwareBuffer_allocate(const AHardwareBuffer_Desc* desc, int AHardwareBuffer_allocate(const AHardwareBuffer_Desc* desc, AHardwareBuffer** outBuffer); AHardwareBuffer** outBuffer) __INTRODUCED_IN(26); /** /** * Acquire a reference on the given AHardwareBuffer object. This prevents the * Acquire a reference on the given AHardwareBuffer object. This prevents the * object from being deleted until the last reference is removed. * object from being deleted until the last reference is removed. */ */ void AHardwareBuffer_acquire(AHardwareBuffer* buffer); void AHardwareBuffer_acquire(AHardwareBuffer* buffer) __INTRODUCED_IN(26); /** /** * Remove a reference that was previously acquired with * Remove a reference that was previously acquired with * AHardwareBuffer_acquire(). * AHardwareBuffer_acquire(). */ */ void AHardwareBuffer_release(AHardwareBuffer* buffer); void AHardwareBuffer_release(AHardwareBuffer* buffer) __INTRODUCED_IN(26); /** /** * Return a description of the AHardwareBuffer in the passed * Return a description of the AHardwareBuffer in the passed * AHardwareBuffer_Desc struct. * AHardwareBuffer_Desc struct. */ */ void AHardwareBuffer_describe(const AHardwareBuffer* buffer, void AHardwareBuffer_describe(const AHardwareBuffer* buffer, AHardwareBuffer_Desc* outDesc); AHardwareBuffer_Desc* outDesc) __INTRODUCED_IN(26); /* /* * Lock the AHardwareBuffer for reading or writing, depending on the usage flags * Lock the AHardwareBuffer for reading or writing, depending on the usage flags Loading Loading @@ -216,7 +216,7 @@ void AHardwareBuffer_describe(const AHardwareBuffer* buffer, * number of the lock fails for any reason. * number of the lock fails for any reason. */ */ int AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, int AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, int32_t fence, const ARect* rect, void** outVirtualAddress); int32_t fence, const ARect* rect, void** outVirtualAddress) __INTRODUCED_IN(26); /* /* * Unlock the AHardwareBuffer; must be called after all changes to the buffer * Unlock the AHardwareBuffer; must be called after all changes to the buffer Loading @@ -228,7 +228,7 @@ int AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, * Returns NO_ERROR on success, BAD_VALUE if the buffer is NULL, or an error * Returns NO_ERROR on success, BAD_VALUE if the buffer is NULL, or an error * number of the lock fails for any reason. * number of the lock fails for any reason. */ */ int AHardwareBuffer_unlock(AHardwareBuffer* buffer, int32_t* fence); int AHardwareBuffer_unlock(AHardwareBuffer* buffer, int32_t* fence) __INTRODUCED_IN(26); /* /* * Send the AHardwareBuffer to an AF_UNIX socket. * Send the AHardwareBuffer to an AF_UNIX socket. Loading @@ -236,7 +236,7 @@ int AHardwareBuffer_unlock(AHardwareBuffer* buffer, int32_t* fence); * Returns NO_ERROR on success, BAD_VALUE if the buffer is NULL, or an error * Returns NO_ERROR on success, BAD_VALUE if the buffer is NULL, or an error * number of the lock fails for any reason. * number of the lock fails for any reason. */ */ int AHardwareBuffer_sendHandleToUnixSocket(const AHardwareBuffer* buffer, int socketFd); int AHardwareBuffer_sendHandleToUnixSocket(const AHardwareBuffer* buffer, int socketFd) __INTRODUCED_IN(26); /* /* * Receive the AHardwareBuffer from an AF_UNIX socket. * Receive the AHardwareBuffer from an AF_UNIX socket. Loading @@ -244,7 +244,7 @@ int AHardwareBuffer_sendHandleToUnixSocket(const AHardwareBuffer* buffer, int so * Returns NO_ERROR on success, BAD_VALUE if the buffer is NULL, or an error * Returns NO_ERROR on success, BAD_VALUE if the buffer is NULL, or an error * number of the lock fails for any reason. * number of the lock fails for any reason. */ */ int AHardwareBuffer_recvHandleFromUnixSocket(int socketFd, AHardwareBuffer** outBuffer); int AHardwareBuffer_recvHandleFromUnixSocket(int socketFd, AHardwareBuffer** outBuffer) __INTRODUCED_IN(26); __END_DECLS __END_DECLS Loading