Index: src/gpu/GrAtlasTextContext.h |
diff --git a/src/gpu/GrAtlasTextContext.h b/src/gpu/GrAtlasTextContext.h |
index 68ec8700399619f58d400d879e6c14818451954d..0805077d9dab313922e9a3fff97911a4d929ea12 100644 |
--- a/src/gpu/GrAtlasTextContext.h |
+++ b/src/gpu/GrAtlasTextContext.h |
@@ -366,19 +366,16 @@ private: |
// Because the GrAtlasTextContext can go out of scope before the final flush, this needs to be |
// refcnted and malloced |
struct DistanceAdjustTable : public SkNVRefCnt<DistanceAdjustTable> { |
- DistanceAdjustTable(float gamma) { this->buildDistanceAdjustTable(gamma); } |
+ DistanceAdjustTable() { this->buildDistanceAdjustTable(); } |
~DistanceAdjustTable() { SkDELETE_ARRAY(fTable); } |
- void buildDistanceAdjustTable(float gamma); |
- |
- SkScalar& operator[] (int i) { |
- return fTable[i]; |
- } |
- |
const SkScalar& operator[] (int i) const { |
return fTable[i]; |
} |
+ private: |
+ void buildDistanceAdjustTable(); |
+ |
SkScalar* fTable; |
}; |