Merge "Fix fallthrough warning"
This commit is contained in:
@@ -234,9 +234,6 @@ cc_defaults {
|
|||||||
"protos/graphicsstats.proto",
|
"protos/graphicsstats.proto",
|
||||||
],
|
],
|
||||||
|
|
||||||
// Allow implicit fallthroughs in HardwareBitmapUploader.cpp until they are fixed.
|
|
||||||
cflags: ["-Wno-implicit-fallthrough"],
|
|
||||||
|
|
||||||
proto: {
|
proto: {
|
||||||
export_proto_headers: true,
|
export_proto_headers: true,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -302,6 +302,7 @@ static FormatInfo determineFormat(const SkBitmap& skBitmap, bool usingGL) {
|
|||||||
switch (skBitmap.info().colorType()) {
|
switch (skBitmap.info().colorType()) {
|
||||||
case kRGBA_8888_SkColorType:
|
case kRGBA_8888_SkColorType:
|
||||||
formatInfo.isSupported = true;
|
formatInfo.isSupported = true;
|
||||||
|
[[fallthrough]];
|
||||||
// ARGB_4444 is upconverted to RGBA_8888
|
// ARGB_4444 is upconverted to RGBA_8888
|
||||||
case kARGB_4444_SkColorType:
|
case kARGB_4444_SkColorType:
|
||||||
formatInfo.pixelFormat = PIXEL_FORMAT_RGBA_8888;
|
formatInfo.pixelFormat = PIXEL_FORMAT_RGBA_8888;
|
||||||
|
|||||||
Reference in New Issue
Block a user