Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Unified Diff: src/gpu/GrAtlasTextContext.h

Issue 1189223002: Remove gamma field from SkDeviceProperties (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Cleanup DistanceAdjustTable Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkPaint.cpp ('k') | src/gpu/GrAtlasTextContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « src/core/SkPaint.cpp ('k') | src/gpu/GrAtlasTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698