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

Commit df891f8a authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

Fix implicit-fallthrough warnings. DO NOT MERGE.

These changes are not needed in goog/master.

Test: make checkbuild
Bug: 112564944
Change-Id: I75972e680c9502e1b83845f08e79b99a8084cc4c
parent c4b64745
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -234,13 +234,13 @@ void Caches::flush(FlushMode mode) {
            gradientCache.clear();
            fontRenderer.clear();
            fboCache.clear();
        // fall through
            [[fallthrough]];
        case FlushMode::Moderate:
            fontRenderer.flush();
            textureCache.flush();
            pathCache.clear();
            tessellationCache.clear();
        // fall through
            [[fallthrough]];
        case FlushMode::Layers:
            renderBufferCache.clear();
            break;
+2 −1
Original line number Diff line number Diff line
@@ -332,6 +332,7 @@ sk_sp<Bitmap> SkiaOpenGLPipeline::allocateHardwareBitmap(renderthread::RenderThr
        case kRGBA_8888_SkColorType:
            isSupported = true;
            // ARGB_4444 is upconverted to RGBA_8888
            [[fallthrough]];
        case kARGB_4444_SkColorType:
            pixelFormat = PIXEL_FORMAT_RGBA_8888;
            format = GL_RGBA;