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

Commit 937e4af0 authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

Merge "Fix fallthrough warning"

am: e1813e52

Change-Id: Ic84d23cd131ecf475dee101a6fc2e0d83424c9ed
parents c1b61bdf e1813e52
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -234,9 +234,6 @@ cc_defaults {
        "protos/graphicsstats.proto",
    ],

    // Allow implicit fallthroughs in HardwareBitmapUploader.cpp until they are fixed.
    cflags: ["-Wno-implicit-fallthrough"],

    proto: {
        export_proto_headers: true,
    },
+1 −0
Original line number Diff line number Diff line
@@ -302,6 +302,7 @@ static FormatInfo determineFormat(const SkBitmap& skBitmap, bool usingGL) {
    switch (skBitmap.info().colorType()) {
        case kRGBA_8888_SkColorType:
            formatInfo.isSupported = true;
            [[fallthrough]];
        // ARGB_4444 is upconverted to RGBA_8888
        case kARGB_4444_SkColorType:
            formatInfo.pixelFormat = PIXEL_FORMAT_RGBA_8888;