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

Unified Diff: ui/gfx/color_space.h

Issue 2119723002: Color: Add SetColorSpace member to gfx::GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@plumb_2
Patch Set: Add OWNERs Created 4 years, 6 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
Index: ui/gfx/color_space.h
diff --git a/ui/gfx/color_space.h b/ui/gfx/color_space.h
index 686e7520eca3223eb8e6fb9cf8e207ba0580ae94..0129e7e1cb4282c8ac765a927293bf19455c0afd 100644
--- a/ui/gfx/color_space.h
+++ b/ui/gfx/color_space.h
@@ -11,6 +11,10 @@
#include "build/build_config.h"
#include "ui/gfx/gfx_export.h"
+#if defined(OS_MACOSX)
+#include <CoreGraphics/CGColorSpace.h>
+#endif
+
namespace gfx {
class GFX_EXPORT ColorSpace {
@@ -27,6 +31,9 @@ class GFX_EXPORT ColorSpace {
// which monitor it will be displayed.
static ColorSpace FromBestMonitor();
static ColorSpace FromICCProfile(const std::vector<char>& icc_profile);
+#if defined(OS_MACOSX)
+ static ColorSpace FromCGColorSpace(CGColorSpaceRef cg_color_space);
+#endif
const std::vector<char>& GetICCProfile() const { return icc_profile_; }

Powered by Google App Engine
This is Rietveld 408576698