aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar tzik <tzik@chromium.org>2016-01-05 00:35:50 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-05 00:35:50 -0800
commitbc7d235c8b0ddbe7080c6e9eba5b617fddc16135 (patch)
tree444250461f432f31ce6c58f1d4d95e996191defd /include
parent830e012187f951d49d7e46e196ac8d1e653a25da (diff)
Take care fall-through case of switch in skia
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrTestUtils.h1
-rw-r--r--include/gpu/GrTypesPriv.h1
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;