Skip to content

Commit

Permalink
Remove GetD65PrimariesFromToXYZD50Matrix() (#3004)
Browse files Browse the repository at this point in the history
Removes the function GetD65PrimariesFromToXYZD50Matrix() from the build
as it breaks older toolchain builds.
    
b/319697087
  • Loading branch information
osagie98 committed Apr 18, 2024
1 parent f720cc6 commit 5efd46e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skia/ext/skcolorspace_primaries.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ std::string SkColorSpacePrimariesToString(
return ss.str();
}

#if !defined(STARBOARD)
SkColorSpacePrimaries GetD65PrimariesFromToXYZD50Matrix(
const skcms_Matrix3x3& m_d50) {
constexpr float kD65_X = 0.3127f;
Expand All @@ -67,5 +68,6 @@ SkColorSpacePrimaries GetD65PrimariesFromToXYZD50Matrix(
primaries.fWY = kD65_Y;
return primaries;
}
#endif // !defined(STARBOARD)

} // namespace skia
2 changes: 2 additions & 0 deletions skia/ext/skcolorspace_primaries.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ namespace skia {
SK_API std::string SkColorSpacePrimariesToString(
const SkColorSpacePrimaries& primaries);

#if !defined(STARBOARD)
// Given a matrix that transforms to XYZD50, compute the primaries with a D65
// white point that would produce this matrix.
SK_API SkColorSpacePrimaries
GetD65PrimariesFromToXYZD50Matrix(const skcms_Matrix3x3& m);
#endif // !defined(STARBOARD)

} // namespace skia

Expand Down

0 comments on commit 5efd46e

Please sign in to comment.