diff options
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrTypes.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h index 2405679c0f..b78976361b 100644 --- a/include/gpu/GrTypes.h +++ b/include/gpu/GrTypes.h @@ -248,9 +248,10 @@ enum GrMaskFormat { kA8_GrMaskFormat, //!< 1-byte per pixel kA565_GrMaskFormat, //!< 2-bytes per pixel kA888_GrMaskFormat, //!< 4-bytes per pixel - - kCount_GrMaskFormats //!< used to allocate arrays sized for mask formats + + kLast_GrMaskFormat = kA888_GrMaskFormat }; +static const int kMaskFormatCount = kLast_GrMaskFormat + 1; /** * Return the number of bytes-per-pixel for the specified mask format. |