| Index: src/core/SkPaint.cpp
|
| diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp
|
| index 2c1745d00b490f03837f35481a9c08926975e15c..9f76355aac8ecd73153578653df755482f40647a 100644
|
| --- a/src/core/SkPaint.cpp
|
| +++ b/src/core/SkPaint.cpp
|
| @@ -1291,9 +1291,9 @@ static bool justAColor(const SkPaint& paint, SkColor* color) {
|
| return true;
|
| }
|
|
|
| -static SkColor computeLuminanceColor(const SkPaint& paint) {
|
| +SkColor SkPaint::computeLuminanceColor() const {
|
| SkColor c;
|
| - if (!justAColor(paint, &c)) {
|
| + if (!justAColor(*this, &c)) {
|
| c = SkColorSetRGB(0x7F, 0x80, 0x7F);
|
| }
|
| return c;
|
| @@ -1463,7 +1463,7 @@ void SkScalerContext::MakeRec(const SkPaint& paint,
|
| // these modify fFlags, so do them after assigning fFlags
|
| rec->setHinting(computeHinting(paint));
|
|
|
| - rec->setLuminanceColor(computeLuminanceColor(paint));
|
| + rec->setLuminanceColor(paint.computeLuminanceColor());
|
|
|
| if (NULL == deviceProperties) {
|
| rec->setDeviceGamma(SK_GAMMA_EXPONENT);
|
|
|