| Index: include/core/SkColorSpace.h
|
| diff --git a/include/core/SkColorSpace.h b/include/core/SkColorSpace.h
|
| index e0ef70eeca22a130a7782f17fc0f7956651942c1..06adc117281157a736736c269a75e15223dbb43a 100644
|
| --- a/include/core/SkColorSpace.h
|
| +++ b/include/core/SkColorSpace.h
|
| @@ -75,6 +75,9 @@ public:
|
| */
|
| sk_sp<SkColorSpace> makeLinearGamma();
|
|
|
| + /**
|
| + * DO NOT USE: Will be deleted.
|
| + */
|
| GammaNamed gammaNamed() const { return fGammaNamed; }
|
|
|
| /**
|
| @@ -90,13 +93,11 @@ public:
|
| }
|
|
|
| /**
|
| - * To be used only by UMA code.
|
| + * Returns true if the color space gamma is linear.
|
| */
|
| - bool gammasAreMatching() const;
|
| - bool gammasAreNamed() const;
|
| - bool gammasAreValues() const;
|
| - bool gammasAreTables() const;
|
| - bool gammasAreParams() const;
|
| + bool gammaIsLinear() const {
|
| + return kLinear_GammaNamed == fGammaNamed;
|
| + }
|
|
|
| /**
|
| * Returns nullptr on failure. Fails when we fallback to serializing ICC data and
|
|
|