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

Unified Diff: public/platform/mac/WebSandboxSupport.h

Issue 554033002: [Mac] Add a new WebSandboxSupport method to get the display's color space. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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: public/platform/mac/WebSandboxSupport.h
diff --git a/public/platform/mac/WebSandboxSupport.h b/public/platform/mac/WebSandboxSupport.h
index 242f31d1e13d888ffc05fafef03e8ea73497c0b1..1f2c25be7695d84f6e16912dea19184c4ead066c 100644
--- a/public/platform/mac/WebSandboxSupport.h
+++ b/public/platform/mac/WebSandboxSupport.h
@@ -31,6 +31,7 @@
#ifndef WebSandboxSupport_h
#define WebSandboxSupport_h
+typedef struct CGColorSpace* CGColorSpaceRef;
typedef struct CGFont* CGFontRef;
#ifdef __OBJC__
@@ -54,6 +55,10 @@ public:
//
// Returns: true on success, false on error.
virtual bool loadFont(NSFont* srcFont, CGFontRef* out, uint32_t* fontID) = 0;
+
+ // Returns the color space for the main display. The caller does not own
+ // the result.
+ virtual CGColorSpaceRef displayColorSpace() = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698