Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: ui/gfx/icc_profile.cc

Issue 2795093002: color: Clean up dependencies to allow including in cc/paint (Closed)
Patch Set: Move to separate component Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« ui/gfx/BUILD.gn ('K') | « ui/gfx/color_space.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gfx/icc_profile.h" 5 #include "ui/gfx/icc_profile.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "base/containers/mru_cache.h" 9 #include "base/containers/mru_cache.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
11 #include "base/synchronization/lock.h" 11 #include "base/synchronization/lock.h"
12 #include "third_party/skia/include/core/SkColorSpaceXform.h" 12 #include "third_party/skia/include/core/SkColorSpaceXform.h"
13 #include "third_party/skia/include/core/SkICC.h" 13 #include "third_party/skia/include/core/SkICC.h"
14 #include "ui/gfx/color_transform.h"
15 #include "ui/gfx/skia_color_space_util.h" 14 #include "ui/gfx/skia_color_space_util.h"
16 15
17 namespace gfx { 16 namespace gfx {
18 17
19 const uint64_t ICCProfile::test_id_adobe_rgb_ = 1; 18 const uint64_t ICCProfile::test_id_adobe_rgb_ = 1;
20 const uint64_t ICCProfile::test_id_color_spin_ = 2; 19 const uint64_t ICCProfile::test_id_color_spin_ = 2;
21 const uint64_t ICCProfile::test_id_generic_rgb_ = 3; 20 const uint64_t ICCProfile::test_id_generic_rgb_ = 3;
22 const uint64_t ICCProfile::test_id_srgb_ = 4; 21 const uint64_t ICCProfile::test_id_srgb_ = 4;
23 const uint64_t ICCProfile::test_id_no_analytic_tr_fn_ = 5; 22 const uint64_t ICCProfile::test_id_no_analytic_tr_fn_ = 5;
24 const uint64_t ICCProfile::test_id_a2b_only_ = 6; 23 const uint64_t ICCProfile::test_id_a2b_only_ = 6;
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 249
251 // Add to the cache. 250 // Add to the cache.
252 { 251 {
253 Cache& cache = g_cache.Get(); 252 Cache& cache = g_cache.Get();
254 base::AutoLock lock(cache.lock); 253 base::AutoLock lock(cache.lock);
255 cache.id_to_icc_profile_mru.Put(id_, *this); 254 cache.id_to_icc_profile_mru.Put(id_, *this);
256 } 255 }
257 } 256 }
258 257
259 } // namespace gfx 258 } // namespace gfx
OLDNEW
« ui/gfx/BUILD.gn ('K') | « ui/gfx/color_space.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698