Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Side by Side Diff: ui/gfx/color_profile.h

Issue 300033005: Remove gfx/ui/color_profile GetColorProfile() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef UI_GFX_COLOR_PROFILE_H_ 5 #ifndef UI_GFX_COLOR_PROFILE_H_
6 #define UI_GFX_COLOR_PROFILE_H_ 6 #define UI_GFX_COLOR_PROFILE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
(...skipping 16 matching lines...) Expand all
27 private: 27 private:
28 std::vector<char> profile_; 28 std::vector<char> profile_;
29 29
30 DISALLOW_COPY_AND_ASSIGN(ColorProfile); 30 DISALLOW_COPY_AND_ASSIGN(ColorProfile);
31 }; 31 };
32 32
33 inline bool InvalidColorProfileLength(size_t length) { 33 inline bool InvalidColorProfileLength(size_t length) {
34 return (length < kMinProfileLength) || (length > kMaxProfileLength); 34 return (length < kMinProfileLength) || (length > kMaxProfileLength);
35 } 35 }
36 36
37 // Loads the monitor color space if available.
38 // TODO(noel): is this function used anywhere? If not, remove it.
39 GFX_EXPORT void GetColorProfile(std::vector<char>* profile);
40
41 // Return the color profile of the display nearest the screen bounds. On Win32, 37 // Return the color profile of the display nearest the screen bounds. On Win32,
42 // this may read a file from disk, so it shouldn't be run on the UI/IO threads. 38 // this may read a file from disk, so it shouldn't be run on the UI/IO threads.
43 // If the given bounds are empty, or are off-screen, return false meaning there 39 // If the given bounds are empty, or are off-screen, return false meaning there
44 // is no color profile associated with the bounds. 40 // is no color profile associated with the bounds.
45 GFX_EXPORT bool GetDisplayColorProfile(const gfx::Rect& bounds, 41 GFX_EXPORT bool GetDisplayColorProfile(const gfx::Rect& bounds,
46 std::vector<char>* profile); 42 std::vector<char>* profile);
47 } // namespace gfx 43 } // namespace gfx
48 44
49 #endif // UI_GFX_COLOR_PROFILE_H_ 45 #endif // UI_GFX_COLOR_PROFILE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698