Index: src/gpu/GrBatchAtlas.h |
diff --git a/src/gpu/GrBatchAtlas.h b/src/gpu/GrBatchAtlas.h |
index 61fc7e10934c9ccbc4204da520b26ec7d0401e8c..21eda0568d1eaf91fe8cc64e37a4c779e04441c3 100644 |
--- a/src/gpu/GrBatchAtlas.h |
+++ b/src/gpu/GrBatchAtlas.h |
@@ -20,6 +20,8 @@ class GrRectanizer; |
struct GrBatchAtlasConfig { |
int numPlotsX() const { return fWidth / fPlotWidth; } |
int numPlotsY() const { return fHeight / fPlotWidth; } |
+ int log2Width() const { return SkNextLog2(fWidth); } |
+ int log2Height() const { return SkNextLog2(fHeight); } |
joshualitt
2016/02/18 20:12:11
is it worth caching these?
jvanverth1
2016/02/18 20:21:20
Yes, that makes sense.
|
int fWidth; |
int fHeight; |
int fPlotWidth; |