diff options
author | 2016-01-05 00:35:50 -0800 | |
---|---|---|
committer | 2016-01-05 00:35:50 -0800 | |
commit | bc7d235c8b0ddbe7080c6e9eba5b617fddc16135 (patch) | |
tree | 444250461f432f31ce6c58f1d4d95e996191defd /include | |
parent | 830e012187f951d49d7e46e196ac8d1e653a25da (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrTestUtils.h | 1 | ||||
-rw-r--r-- | include/gpu/GrTypesPriv.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/gpu/GrTestUtils.h b/include/gpu/GrTestUtils.h index 91f36ea2d9..8ffae09ddd 100644 --- a/include/gpu/GrTestUtils.h +++ b/include/gpu/GrTestUtils.h @@ -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; diff --git a/include/gpu/GrTypesPriv.h b/include/gpu/GrTypesPriv.h index 6135c14c12..6cbd6bb0be 100644 --- a/include/gpu/GrTypesPriv.h +++ b/include/gpu/GrTypesPriv.h @@ -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; |