| Index: src/gpu/GrBatchAtlas.h
|
| diff --git a/src/gpu/GrBatchAtlas.h b/src/gpu/GrBatchAtlas.h
|
| index 77a49ce6993064fced6aadf055629ecafa2cddaa..2b85da1f7d7d2c3083323917d7b7dabedb02f213 100644
|
| --- a/src/gpu/GrBatchAtlas.h
|
| +++ b/src/gpu/GrBatchAtlas.h
|
| @@ -112,6 +112,11 @@ public:
|
|
|
| void setLastUseTokenBulk(const BulkUseTokenUpdater& reffer, BatchToken);
|
|
|
| + static const int kGlyphMaxDim = 256;
|
| + static bool GlyphTooLargeForAtlas(int width, int height) {
|
| + return width > kGlyphMaxDim || height > kGlyphMaxDim;
|
| + }
|
| +
|
| private:
|
| static int GetIndexFromID(AtlasID id) {
|
| return id & 0xffff;
|
|
|