diff options
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; |