Merge "Fix implicit-fallthrough warnings. DO NOT MERGE."
This commit is contained in:
@@ -234,13 +234,13 @@ void Caches::flush(FlushMode mode) {
|
|||||||
gradientCache.clear();
|
gradientCache.clear();
|
||||||
fontRenderer.clear();
|
fontRenderer.clear();
|
||||||
fboCache.clear();
|
fboCache.clear();
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
case FlushMode::Moderate:
|
case FlushMode::Moderate:
|
||||||
fontRenderer.flush();
|
fontRenderer.flush();
|
||||||
textureCache.flush();
|
textureCache.flush();
|
||||||
pathCache.clear();
|
pathCache.clear();
|
||||||
tessellationCache.clear();
|
tessellationCache.clear();
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
case FlushMode::Layers:
|
case FlushMode::Layers:
|
||||||
renderBufferCache.clear();
|
renderBufferCache.clear();
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -331,7 +331,8 @@ sk_sp<Bitmap> SkiaOpenGLPipeline::allocateHardwareBitmap(renderthread::RenderThr
|
|||||||
switch (info.colorType()) {
|
switch (info.colorType()) {
|
||||||
case kRGBA_8888_SkColorType:
|
case kRGBA_8888_SkColorType:
|
||||||
isSupported = true;
|
isSupported = true;
|
||||||
// ARGB_4444 is upconverted to RGBA_8888
|
// ARGB_4444 is upconverted to RGBA_8888
|
||||||
|
[[fallthrough]];
|
||||||
case kARGB_4444_SkColorType:
|
case kARGB_4444_SkColorType:
|
||||||
pixelFormat = PIXEL_FORMAT_RGBA_8888;
|
pixelFormat = PIXEL_FORMAT_RGBA_8888;
|
||||||
format = GL_RGBA;
|
format = GL_RGBA;
|
||||||
|
|||||||
Reference in New Issue
Block a user