diff options
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/include/GrTypes.h | 8 | ||||
-rw-r--r-- | gpu/src/GrAtlas.cpp | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gpu/include/GrTypes.h b/gpu/include/GrTypes.h index 76e01b00a7..2bf4b09055 100644 --- a/gpu/include/GrTypes.h +++ b/gpu/include/GrTypes.h @@ -247,10 +247,12 @@ enum GrBlendCoeff { * Important that these are 0-based. */ enum GrMaskFormat { - kA8_GrMaskFormat, //!< 1-byte per pixel - kA565_GrMaskFormat //!< 2-bytes per pixel + 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 }; -#define kCount_GrMaskFormats 2 /** * Return the number of bytes-per-pixel for the specified mask format. diff --git a/gpu/src/GrAtlas.cpp b/gpu/src/GrAtlas.cpp index e577beb629..480a3073f9 100644 --- a/gpu/src/GrAtlas.cpp +++ b/gpu/src/GrAtlas.cpp @@ -148,6 +148,8 @@ static GrPixelConfig maskformat2pixelconfig(GrMaskFormat format) { return kAlpha_8_GrPixelConfig; case kA565_GrMaskFormat: return kRGB_565_GrPixelConfig; + case kA888_GrMaskFormat: + return kRGBA_8888_GrPixelConfig; default: GrAssert(!"unknown maskformat"); } |