| Index: include/private/SkImageInfoPriv.h
|
| diff --git a/include/private/SkImageInfoPriv.h b/include/private/SkImageInfoPriv.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..93ef2740a648619ff1748eeff22373692ba5bb9b
|
| --- /dev/null
|
| +++ b/include/private/SkImageInfoPriv.h
|
| @@ -0,0 +1,19 @@
|
| +/*
|
| + * Copyright 2016 Google Inc.
|
| + *
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +#ifndef SkImageInfoPriv_DEFINED
|
| +#define SkImageInfoPriv_DEFINED
|
| +
|
| +#include "SkImageInfo.h"
|
| +
|
| +// Indicate how images and gradients should interpret colors by default.
|
| +extern bool gDefaultProfileIsSRGB;
|
| +
|
| +static SkColorProfileType SkDefaultColorProfile() {
|
| + return gDefaultProfileIsSRGB ? kSRGB_SkColorProfileType : kLinear_SkColorProfileType;
|
| +}
|
| +
|
| +#endif // SkImageInfoPriv_DEFINED
|
|
|