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

Unified Diff: src/gpu/text/GrDistanceFieldAdjustTable.h

Issue 1884873006: Rename lots of things from 'sRGB' to 'GammaCorrect', where appropriate (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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
Index: src/gpu/text/GrDistanceFieldAdjustTable.h
diff --git a/src/gpu/text/GrDistanceFieldAdjustTable.h b/src/gpu/text/GrDistanceFieldAdjustTable.h
index f9b5161e95a7b3739d8aa7ae9161b592631820ea..0f5c6f29abb19ba8825d13238b791f7ccfbf0bac 100644
--- a/src/gpu/text/GrDistanceFieldAdjustTable.h
+++ b/src/gpu/text/GrDistanceFieldAdjustTable.h
@@ -18,18 +18,18 @@ struct GrDistanceFieldAdjustTable : public SkNVRefCnt<GrDistanceFieldAdjustTable
GrDistanceFieldAdjustTable() { this->buildDistanceAdjustTables(); }
~GrDistanceFieldAdjustTable() {
delete[] fTable;
- delete[] fSRGBTable;
+ delete[] fGammaCorrectTable;
}
- const SkScalar& getAdjustment(int i, bool useSRGBTable) const {
- return useSRGBTable ? fSRGBTable[i] : fTable[i];
+ const SkScalar& getAdjustment(int i, bool useGammaCorrectTable) const {
+ return useGammaCorrectTable ? fGammaCorrectTable[i] : fTable[i];
}
private:
void buildDistanceAdjustTables();
SkScalar* fTable;
- SkScalar* fSRGBTable;
+ SkScalar* fGammaCorrectTable;
};
#endif

Powered by Google App Engine
This is Rietveld 408576698