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