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

Unified Diff: src/core/SkDeviceProperties.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 | « no previous file | src/core/SkPaint.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkDeviceProperties.h
diff --git a/src/core/SkDeviceProperties.h b/src/core/SkDeviceProperties.h
index 53c0fa3ae29e5b970731c0e5d687f50c5dbedfe4..7dc4605c37802b670720ece5c68c8d5debc420b3 100644
--- a/src/core/SkDeviceProperties.h
+++ b/src/core/SkDeviceProperties.h
@@ -12,24 +12,20 @@
struct SkDeviceProperties {
SkDeviceProperties(const SkDeviceProperties& src)
- : fGamma(src.fGamma)
- , fUseDFT(src.fUseDFT)
+ : fUseDFT(src.fUseDFT)
, fPixelGeometry(src.fPixelGeometry) {
}
- SkDeviceProperties(float gamma = SK_GAMMA_EXPONENT)
- : fGamma(gamma)
- , fUseDFT(false)
+ SkDeviceProperties()
+ : fUseDFT(false)
, fPixelGeometry(SkSurfacePropsDefaultPixelGeometry())
{}
- SkDeviceProperties(SkPixelGeometry geo, bool useDFT = false, float gamma = SK_GAMMA_EXPONENT)
- : fGamma(gamma)
- , fUseDFT(useDFT)
+ SkDeviceProperties(SkPixelGeometry geo, bool useDFT = false)
+ : fUseDFT(useDFT)
, fPixelGeometry(geo)
{}
- float gamma() const { return fGamma; }
bool useDFT() const { return fUseDFT; }
SkPixelGeometry pixelGeometry() const { return fPixelGeometry; }
@@ -38,7 +34,6 @@ struct SkDeviceProperties {
}
private:
- const float fGamma;
const bool fUseDFT;
SkPixelGeometry fPixelGeometry;
};
« no previous file with comments | « no previous file | src/core/SkPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698