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

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

Issue 2915673003: ui/gfx: Use separate components for color_space and switches (Closed)
Patch Set: Review feedback Created 3 years, 6 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
« no previous file with comments | « ui/gfx/icc_profile.h ('k') | ui/gfx/mac/io_surface.cc » ('j') | 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/command_line.h" 9 #include "base/command_line.h"
10 #include "base/containers/mru_cache.h" 10 #include "base/containers/mru_cache.h"
11 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "third_party/skia/include/core/SkColorSpaceXform.h" 13 #include "third_party/skia/include/core/SkColorSpaceXform.h"
14 #include "third_party/skia/include/core/SkICC.h" 14 #include "third_party/skia/include/core/SkICC.h"
15 #include "ui/gfx/color_space_switches.h"
15 #include "ui/gfx/skia_color_space_util.h" 16 #include "ui/gfx/skia_color_space_util.h"
16 #include "ui/gfx/switches.h"
17 17
18 namespace gfx { 18 namespace gfx {
19 19
20 const uint64_t ICCProfile::test_id_adobe_rgb_ = 1; 20 const uint64_t ICCProfile::test_id_adobe_rgb_ = 1;
21 const uint64_t ICCProfile::test_id_color_spin_ = 2; 21 const uint64_t ICCProfile::test_id_color_spin_ = 2;
22 const uint64_t ICCProfile::test_id_generic_rgb_ = 3; 22 const uint64_t ICCProfile::test_id_generic_rgb_ = 3;
23 const uint64_t ICCProfile::test_id_srgb_ = 4; 23 const uint64_t ICCProfile::test_id_srgb_ = 4;
24 const uint64_t ICCProfile::test_id_no_analytic_tr_fn_ = 5; 24 const uint64_t ICCProfile::test_id_no_analytic_tr_fn_ = 5;
25 const uint64_t ICCProfile::test_id_a2b_only_ = 6; 25 const uint64_t ICCProfile::test_id_a2b_only_ = 6;
26 const uint64_t ICCProfile::test_id_overshoot_ = 7; 26 const uint64_t ICCProfile::test_id_overshoot_ = 7;
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 // Add to the cache. 285 // Add to the cache.
286 { 286 {
287 Cache& cache = g_cache.Get(); 287 Cache& cache = g_cache.Get();
288 base::AutoLock lock(cache.lock); 288 base::AutoLock lock(cache.lock);
289 cache.id_to_icc_profile_mru.Put(id_, *this); 289 cache.id_to_icc_profile_mru.Put(id_, *this);
290 } 290 }
291 } 291 }
292 292
293 } // namespace gfx 293 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/icc_profile.h ('k') | ui/gfx/mac/io_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698