| Index: ui/gfx/icc_profile.cc
|
| diff --git a/ui/gfx/icc_profile.cc b/ui/gfx/icc_profile.cc
|
| index ef823f389991cb7c99e2b04511d57392898fbb6b..2635586a946b8607554731cba31123e52381fbee 100644
|
| --- a/ui/gfx/icc_profile.cc
|
| +++ b/ui/gfx/icc_profile.cc
|
| @@ -144,31 +144,6 @@ ICCProfile ICCProfile::FromColorSpace(const gfx::ColorSpace& color_space) {
|
| return ICCProfile();
|
| }
|
|
|
| -ICCProfile ICCProfile::FromSkColorSpace(sk_sp<SkColorSpace> color_space) {
|
| - ICCProfile icc_profile;
|
| -
|
| - Cache& cache = g_cache.Get();
|
| - base::AutoLock lock(cache.lock);
|
| -
|
| - // Linearly search the cached ICC profiles to find one with the same data.
|
| - // If it exists, re-use its id and touch it in the cache.
|
| - for (auto iter = cache.id_to_icc_profile_mru.begin();
|
| - iter != cache.id_to_icc_profile_mru.end(); ++iter) {
|
| - sk_sp<SkColorSpace> iter_color_space =
|
| - iter->second.color_space_.ToSkColorSpace();
|
| - if (SkColorSpace::Equals(color_space.get(), iter_color_space.get())) {
|
| - icc_profile = iter->second;
|
| - cache.id_to_icc_profile_mru.Get(icc_profile.id_);
|
| - return icc_profile;
|
| - }
|
| - }
|
| -
|
| - // TODO(ccameron): Support constructing ICC profiles from arbitrary
|
| - // SkColorSpace objects.
|
| - DLOG(ERROR) << "Failed to find ICC profile matching SkColorSpace.";
|
| - return icc_profile;
|
| -}
|
| -
|
| const std::vector<char>& ICCProfile::GetData() const {
|
| return data_;
|
| }
|
|
|