| Index: src/gpu/GrBatchFontCache.h
|
| diff --git a/src/gpu/GrBatchFontCache.h b/src/gpu/GrBatchFontCache.h
|
| index 9804750f17ab3a054c4a31ee7df2fb1a94d47d63..2b625291994ff2610f804e222d5879cc4695e25d 100644
|
| --- a/src/gpu/GrBatchFontCache.h
|
| +++ b/src/gpu/GrBatchFontCache.h
|
| @@ -147,11 +147,20 @@ public:
|
| return this->getAtlas(format)->atlasGeneration();
|
| }
|
|
|
| - GrPixelConfig getPixelConfig(GrMaskFormat) const;
|
| -
|
| void dump() const;
|
|
|
| private:
|
| + static GrPixelConfig MaskFormatToPixelConfig(GrMaskFormat format) {
|
| + static const GrPixelConfig kPixelConfigs[] = {
|
| + kAlpha_8_GrPixelConfig,
|
| + kRGB_565_GrPixelConfig,
|
| + kSkia8888_GrPixelConfig
|
| + };
|
| + SK_COMPILE_ASSERT(SK_ARRAY_COUNT(kPixelConfigs) == kMaskFormatCount, array_size_mismatch);
|
| +
|
| + return kPixelConfigs[format];
|
| + }
|
| +
|
| // There is a 1:1 mapping between GrMaskFormats and atlas indices
|
| static int MaskFormatToAtlasIndex(GrMaskFormat format) {
|
| static const int sAtlasIndices[] = {
|
|
|