summaryrefslogtreecommitdiffstats
path: root/ui/gfx/color_profile.cc
blob: 220d993599d09cfb4ed20a0b2433562db663de85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "build/build_config.h"
#include "ui/gfx/color_profile.h"

namespace gfx {

#if defined(OS_WIN) || (defined(OS_MACOSX) && !defined(OS_IOS))
void ReadColorProfile(std::vector<char>* profile);
#else
void ReadColorProfile(std::vector<char>* profile) { }
GFX_EXPORT bool GetDisplayColorProfile(const gfx::Rect& bounds,
                                       std::vector<char>* profile) {
  // TODO(port): consider screen color profile support.
  return false;
}
#endif

ColorProfile::ColorProfile() {
  // TODO: support multiple monitors.
  ReadColorProfile(&profile_);
}

ColorProfile::~ColorProfile() {
}

}  // namespace gfx