OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/color_profile.h" | 5 #include "ui/gfx/color_profile.h" |
6 | 6 |
7 namespace gfx { | 7 namespace gfx { |
8 | 8 |
9 #if defined(OS_WIN) || defined(OS_MACOSX) | 9 #if defined(OS_WIN) || defined(OS_MACOSX) |
10 void ReadColorProfile(std::vector<char>* profile); | 10 void ReadColorProfile(std::vector<char>* profile); |
11 GFX_EXPORT bool GetDisplayColorProfile(const gfx::Rect& bounds, | |
12 std::vector<char>* profile); | |
13 #else | 11 #else |
14 void ReadColorProfile(std::vector<char>* profile) { } | 12 void ReadColorProfile(std::vector<char>* profile) { } |
15 GFX_EXPORT bool GetDisplayColorProfile(const gfx::Rect& bounds, | 13 GFX_EXPORT bool GetDisplayColorProfile(const gfx::Rect& bounds, |
16 std::vector<char>* profile) { | 14 std::vector<char>* profile) { |
17 // TODO(port): consider screen color profile support. | 15 // TODO(port): consider screen color profile support. |
18 return false; | 16 return false; |
19 } | 17 } |
20 #endif | 18 #endif |
21 | 19 |
22 ColorProfile::ColorProfile() { | 20 ColorProfile::ColorProfile() { |
23 // TODO: support multiple monitors. | 21 // TODO: support multiple monitors. |
24 ReadColorProfile(&profile_); | 22 ReadColorProfile(&profile_); |
25 } | 23 } |
26 | 24 |
27 ColorProfile::~ColorProfile() { | 25 ColorProfile::~ColorProfile() { |
28 } | 26 } |
29 | 27 |
30 } // namespace gfx | 28 } // namespace gfx |
OLD | NEW |