Chromium Code Reviews| 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. |