Index: src/gpu/GrBatchAtlas.h |
diff --git a/src/gpu/GrBatchAtlas.h b/src/gpu/GrBatchAtlas.h |
index 494895314125b2f0b33f8ecf73f1cbd1027ec1bd..4e235409246e16f2495e686a055027f4b504bf14 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 |