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

Commit 81a94b91 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove unused bitsPerPixel"

parents d6c2366d 97a61b52
Loading
Loading
Loading
Loading
+0 −19
Original line number Original line Diff line number Diff line
@@ -39,25 +39,6 @@ uint32_t bytesPerPixel(PixelFormat format) {
    return 0;
    return 0;
}
}


uint32_t bitsPerPixel(PixelFormat format) {
    switch (format) {
        case PIXEL_FORMAT_RGBA_FP16:
            return 64;
        case PIXEL_FORMAT_RGBA_8888:
        case PIXEL_FORMAT_RGBX_8888:
        case PIXEL_FORMAT_BGRA_8888:
        case PIXEL_FORMAT_RGBA_1010102:
            return 32;
        case PIXEL_FORMAT_RGB_888:
            return 24;
        case PIXEL_FORMAT_RGB_565:
        case PIXEL_FORMAT_RGBA_5551:
        case PIXEL_FORMAT_RGBA_4444:
            return 16;
    }
    return 0;
}

// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
}; // namespace android
}; // namespace android
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
+0 −1
Original line number Original line Diff line number Diff line
@@ -67,7 +67,6 @@ enum {
typedef int32_t PixelFormat;
typedef int32_t PixelFormat;


uint32_t bytesPerPixel(PixelFormat format);
uint32_t bytesPerPixel(PixelFormat format);
uint32_t bitsPerPixel(PixelFormat format);


}; // namespace android
}; // namespace android