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

Unified Diff: ui/gfx/color_profile.h

Issue 849523003: ui/gfx/color_profile: Add GetDisplayColorProfile for an NSWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gfx/color_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_profile.h
diff --git a/ui/gfx/color_profile.h b/ui/gfx/color_profile.h
index 37a5634ac91c7532051ccfeefd0491084322e94f..8f3f1f62f61d484509b1d8934203e9db109ab050 100644
--- a/ui/gfx/color_profile.h
+++ b/ui/gfx/color_profile.h
@@ -9,6 +9,7 @@
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/gfx_export.h"
+#include "ui/gfx/native_widget_types.h"
namespace gfx {
@@ -42,6 +43,14 @@ inline bool InvalidColorProfileLength(size_t length) {
// standard sRGB color profile should be assumed.
GFX_EXPORT bool GetDisplayColorProfile(const gfx::Rect& bounds,
std::vector<char>* profile);
+#if defined(OS_MACOSX)
+// Return the color profile of the native window. If the window is null, or has
+// empty bounds, return false meaning there is no color profile associated with
+// the window. Otherwise return true after storing the window color profile in
+// |profile|, which will be empty if the sRGB color profile should be assumed.
+GFX_EXPORT bool GetDisplayColorProfile(gfx::NativeWindow window,
+ std::vector<char>* profile);
+#endif
} // namespace gfx
#endif // UI_GFX_COLOR_PROFILE_H_
« no previous file with comments | « no previous file | ui/gfx/color_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698