Remove static asserts for GrSLType and GrVertexAttribType enum values.
authorBrian Salomon <bsalomon@google.com>
Mon, 14 Nov 2016 16:27:00 +0000 (11:27 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Mon, 14 Nov 2016 17:08:16 +0000 (17:08 +0000)
commitfa26e66259d7f4f98d73acd718cccb894743a437
tree449277ea92ee30ae5c4bc6f7a76e618ed6e10089
parent4f3985c636542e46fedddf736401d74c70ba7384
Remove static asserts for GrSLType and GrVertexAttribType enum values.

Replaces with switch statements that will produce a compiler warning if a type is added and helper functions are not updated.

This also removes several unused helper functions for these enum types.

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4486

Change-Id: Iee6d8e5095dc4ba2488a8928bf60f8e903cd3320
Reviewed-on: https://skia-review.googlesource.com/4486
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
include/gpu/GrTypesPriv.h
src/gpu/vk/GrVkUniformHandler.cpp
src/gpu/vk/GrVkVaryingHandler.cpp