Index: src/core/SkPaint.cpp |
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp |
index c00dcc6b4f3bc1ecade57eec69f50a24b5e35225..9b2aa5e2906f73ad08e9178495ac203ea393fe4f 100644 |
--- a/src/core/SkPaint.cpp |
+++ b/src/core/SkPaint.cpp |
@@ -1463,18 +1463,12 @@ void SkScalerContext::MakeRec(const SkPaint& paint, |
rec->setLuminanceColor(paint.computeLuminanceColor()); |
- if (NULL == deviceProperties) { |
- rec->setDeviceGamma(SK_GAMMA_EXPONENT); |
- rec->setPaintGamma(SK_GAMMA_EXPONENT); |
- } else { |
- rec->setDeviceGamma(deviceProperties->gamma()); |
- |
- //For now always set the paint gamma equal to the device gamma. |
- //The math in SkMaskGamma can handle them being different, |
- //but it requires superluminous masks when |
- //Ex : deviceGamma(x) < paintGamma(x) and x is sufficiently large. |
- rec->setPaintGamma(deviceProperties->gamma()); |
- } |
+ //For now always set the paint gamma equal to the device gamma. |
+ //The math in SkMaskGamma can handle them being different, |
+ //but it requires superluminous masks when |
+ //Ex : deviceGamma(x) < paintGamma(x) and x is sufficiently large. |
+ rec->setDeviceGamma(SK_GAMMA_EXPONENT); |
+ rec->setPaintGamma(SK_GAMMA_EXPONENT); |
#ifdef SK_GAMMA_CONTRAST |
rec->setContrast(SK_GAMMA_CONTRAST); |