| 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 #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 <stddef.h> |
| 9 |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 12 #include "base/macros.h" |
| 13 #include "build/build_config.h" |
| 10 #include "ui/gfx/geometry/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
| 11 #include "ui/gfx/gfx_export.h" | 15 #include "ui/gfx/gfx_export.h" |
| 12 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
| 13 | 17 |
| 14 namespace gfx { | 18 namespace gfx { |
| 15 | 19 |
| 16 static const size_t kMinProfileLength = 128; | 20 static const size_t kMinProfileLength = 128; |
| 17 static const size_t kMaxProfileLength = 4 * 1024 * 1024; | 21 static const size_t kMaxProfileLength = 4 * 1024 * 1024; |
| 18 | 22 |
| 19 class GFX_EXPORT ColorProfile { | 23 class GFX_EXPORT ColorProfile { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 47 // Return the color profile of the native window. If the window is null, or has | 51 // Return the color profile of the native window. If the window is null, or has |
| 48 // empty bounds, return false meaning there is no color profile associated with | 52 // empty bounds, return false meaning there is no color profile associated with |
| 49 // the window. Otherwise return true after storing the window color profile in | 53 // the window. Otherwise return true after storing the window color profile in |
| 50 // |profile|, which will be empty if the sRGB color profile should be assumed. | 54 // |profile|, which will be empty if the sRGB color profile should be assumed. |
| 51 GFX_EXPORT bool GetDisplayColorProfile(gfx::NativeWindow window, | 55 GFX_EXPORT bool GetDisplayColorProfile(gfx::NativeWindow window, |
| 52 std::vector<char>* profile); | 56 std::vector<char>* profile); |
| 53 #endif | 57 #endif |
| 54 } // namespace gfx | 58 } // namespace gfx |
| 55 | 59 |
| 56 #endif // UI_GFX_COLOR_PROFILE_H_ | 60 #endif // UI_GFX_COLOR_PROFILE_H_ |
| OLD | NEW |