Use explicitly-sized enums in GrGLProgramDesc::KeyHeader
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 1 Oct 2013 18:43:29 +0000 (18:43 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 1 Oct 2013 18:43:29 +0000 (18:43 +0000)
commit949eef0af2f5b47000e637347801cf2970092a38
treed4a174c12f5d9dd4fd93cb794eccc381cab0ee8f
parent1d06999bc2ad627649396dc51d3c3776aea2eacb
Use explicitly-sized enums in GrGLProgramDesc::KeyHeader

Uses enums explicitly sized to 8 bits in GrGLProgramDesc::KeyHeader,
instead of storing them as uint8_t values. This avoids the need to
static_cast them.

R=bsalomon@google.com

Author: cdalton@nvidia.com

Review URL: https://codereview.chromium.org/23875048

git-svn-id: http://skia.googlecode.com/svn/trunk@11560 2bbb7eff-a529-9590-31e7-b0007b416f81
src/gpu/gl/GrGLProgram.cpp
src/gpu/gl/GrGLProgramDesc.h
tests/GLProgramsTest.cpp