Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c04a63ec authored by Leon Scroggins III's avatar Leon Scroggins III
Browse files

Rename callback for AndroidBitmap_compress

Bug: 135133301
Test: No change in behavior, no new tests

Rename from AndroidBitmap_compress_write_fn to
AndroidBitmap_CompressWriteFunc to better fit in with media callbacks,
as suggested in feedback.

Change-Id: Id5d039761054cf8e7fb906624a277714c21156de
parent 46bb0aec
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ enum AndroidBitmapCompressFormat {
 *  @param size Length in bytes of data to write.
 *  @return Whether the operation succeeded.
 */
typedef bool (*AndroidBitmap_compress_write_fn)(void* userContext,
typedef bool (*AndroidBitmap_CompressWriteFunc)(void* userContext,
                                                const void* data,
                                                size_t size) __INTRODUCED_IN(30);

@@ -195,7 +195,7 @@ typedef bool (*AndroidBitmap_compress_write_fn)(void* userContext,
 *                 differently depending on the
 *                 {@link AndroidBitmapCompressFormat}.
 *  @param userContext User-defined data which will be passed to the supplied
 *                     {@link AndroidBitmap_compress_write_fn} each time it is
 *                     {@link AndroidBitmap_CompressWriteFunc} each time it is
 *                     called. May be null.
 *  @parm fn Function that writes the compressed data. Will be called each time
 *           the compressor has compressed more data that is ready to be
@@ -208,7 +208,7 @@ int AndroidBitmap_compress(const AndroidBitmapInfo* info,
                           const void* pixels,
                           int32_t format, int32_t quality,
                           void* userContext,
                           AndroidBitmap_compress_write_fn fn) __INTRODUCED_IN(30);
                           AndroidBitmap_CompressWriteFunc fn) __INTRODUCED_IN(30);

#endif // __ANDROID_API__ >= 30