Take care fall-through case of switch in skia
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1549273002 Review URL: https://codereview.chromium.org/1549273002
This commit is contained in:
parent
830e012187
commit
bc7d235c8b
@ -91,6 +91,7 @@ static inline uint8_t GrRandomCoverage(SkRandom* random) {
|
||||
switch (colorMode) {
|
||||
case kZero_CoverageMode:
|
||||
coverage = 0;
|
||||
break;
|
||||
case kAllOnes_CoverageMode:
|
||||
coverage = 0xff;
|
||||
break;
|
||||
|
@ -178,6 +178,7 @@ static inline GrSLType GrVertexAttribTypeToSLType(GrVertexAttribType type) {
|
||||
switch (type) {
|
||||
default:
|
||||
SkFAIL("Unsupported type conversion");
|
||||
return kVoid_GrSLType;
|
||||
case kUByte_GrVertexAttribType:
|
||||
case kFloat_GrVertexAttribType:
|
||||
return kFloat_GrSLType;
|
||||
|
Loading…
Reference in New Issue
Block a user