summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2018-10-20 01:08:55 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-10-20 01:08:55 +0000
commit46049f5fece2c40c7c9ba36db9a65b1369782c67 (patch)
treeef52a2f5aaf5f02411a9a5ccf3836360e487c4c2
parentdd68cf76deb2f73b3b159cef27ee0da7803897bc (diff)
parentdf891f8a31daafe488c00bb95a5afff14af83e43 (diff)
Merge "Fix implicit-fallthrough warnings. DO NOT MERGE."
-rw-r--r--libs/hwui/Caches.cpp4
-rw-r--r--libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp3
2 files changed, 4 insertions, 3 deletions
diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp
index 3c774a3313d2..0ffd116236f5 100644
--- a/libs/hwui/Caches.cpp
+++ b/libs/hwui/Caches.cpp
@@ -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;
diff --git a/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp b/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp
index 270527d551a9..cb503593c6c8 100644
--- a/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp
+++ b/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp
@@ -331,7 +331,8 @@ sk_sp<Bitmap> SkiaOpenGLPipeline::allocateHardwareBitmap(renderthread::RenderThr
switch (info.colorType()) {
case kRGBA_8888_SkColorType:
isSupported = true;
- // ARGB_4444 is upconverted to RGBA_8888
+ // ARGB_4444 is upconverted to RGBA_8888
+ [[fallthrough]];
case kARGB_4444_SkColorType:
pixelFormat = PIXEL_FORMAT_RGBA_8888;
format = GL_RGBA;