OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #include "color_profile.h" | |
Noel Gordon
2012/07/16 12:14:27
#include "ui/gfx/color_profile.h"
tpayne
2012/07/16 23:44:16
Done.
| |
6 | |
7 #include "base/basictypes.h" | |
8 #include "base/logging.h" | |
Noel Gordon
2012/07/16 12:14:27
You're not using logging.h
tpayne
2012/07/16 23:44:16
Done.
| |
9 | |
10 namespace gfx { | |
11 | |
12 void GetColorProfile(std::vector<char>* profile) { | |
13 // Called from the FILE thread on Windows and IO thread elsewhere. | |
14 | |
15 // TODO: support multiple monitors. | |
16 CR_DEFINE_STATIC_LOCAL(std::vector<char>, screen_profile, ()); | |
17 static bool initialized = false; | |
18 | |
19 profile->clear(); | |
20 if (!initialized) { | |
21 initialized = true; | |
22 ReadColorProfile(&screen_profile); | |
23 } | |
24 | |
25 profile->assign(screen_profile.begin(), screen_profile.end()); | |
26 } | |
27 | |
28 } // namespace gfx | |
OLD | NEW |