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

Unified Diff: content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc

Issue 549213004: [Mac] Implement a new WebSandboxSupport method to get the display's color space. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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: content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc
diff --git a/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc b/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc
index c4a1153926957e88bd342db0d132308688f507ef..ef6ccccd835e1caeaee39ede4be4970a19f43150 100644
--- a/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc
+++ b/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc
@@ -19,6 +19,7 @@
#if defined(OS_WIN)
#include "third_party/WebKit/public/platform/win/WebSandboxSupport.h"
#elif defined(OS_MACOSX)
+#include "base/mac/mac_util.h"
#include "third_party/WebKit/public/platform/mac/WebSandboxSupport.h"
#elif defined(OS_ANDROID)
#include "third_party/WebKit/public/platform/android/WebSandboxSupport.h"
@@ -48,6 +49,7 @@ class PpapiWebKitPlatformSupportImpl::SandboxSupport
#elif defined(OS_MACOSX)
virtual bool loadFont(
NSFont* srcFont, CGFontRef* out, uint32_t* fontID);
+ virtual CGColorSpaceRef displayColorSpace();
#elif defined(OS_ANDROID)
// Empty class.
#elif defined(OS_POSIX)
@@ -95,6 +97,11 @@ bool PpapiWebKitPlatformSupportImpl::SandboxSupport::loadFont(
return false;
}
+CGColorSpaceRef
+PpapiWebKitPlatformSupportImpl::SandboxSupport::displayColorSpace() {
+ return base::mac::GetSystemColorSpace();
Noel Gordon 2014/09/10 07:22:36 Why does ppapi need color profiles? That'd allow
+}
+
#elif defined(OS_ANDROID)
// Empty class.

Powered by Google App Engine
This is Rietveld 408576698