[SyncFS] Build indexes from FileTracker entries on disk.
[chromium-blink-merge.git] / ui / gfx / color_profile.cc
blobbb7c3d546c2584e0842e7a425c84093da8a83927
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
3 // found in the LICENSE file.
5 #include "ui/gfx/color_profile.h"
7 namespace gfx {
9 #if defined(OS_WIN) || defined(OS_MACOSX)
10 void ReadColorProfile(std::vector<char>* profile);
11 GFX_EXPORT bool GetDisplayColorProfile(const gfx::Rect& bounds,
12 std::vector<char>* profile);
13 #else
14 void ReadColorProfile(std::vector<char>* profile) { }
15 GFX_EXPORT bool GetDisplayColorProfile(const gfx::Rect& bounds,
16 std::vector<char>* profile) {
17 // TODO(port): consider screen color profile support.
18 return false;
20 #endif
22 ColorProfile::ColorProfile() {
23 // TODO: support multiple monitors.
24 ReadColorProfile(&profile_);
27 ColorProfile::~ColorProfile() {
30 } // namespace gfx