diff options
Diffstat (limited to 'src/gpu/GrBatchAtlas.h')
-rw-r--r-- | src/gpu/GrBatchAtlas.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/GrBatchAtlas.h b/src/gpu/GrBatchAtlas.h index 4948953141..4e23540924 100644 --- a/src/gpu/GrBatchAtlas.h +++ b/src/gpu/GrBatchAtlas.h @@ -19,6 +19,15 @@ class GrRectanizer; typedef SkTInternalLList<BatchPlot> GrBatchPlotList; +struct GrBatchAtlasConfig { + int numPlotsX() const { return fWidth / fPlotWidth; } + int numPlotsY() const { return fHeight / fPlotWidth; } + int fWidth; + int fHeight; + int fPlotWidth; + int fPlotHeight; +}; + class GrBatchAtlas { public: // An AtlasID is an opaque handle which callers can use to determine if the atlas contains |