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

Unified Diff: sky/engine/platform/image-decoders/ImageDecoder.h

Issue 709603006: Remove a bunch of OS(MACOSX) code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Even more Created 6 years, 1 month 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: sky/engine/platform/image-decoders/ImageDecoder.h
diff --git a/sky/engine/platform/image-decoders/ImageDecoder.h b/sky/engine/platform/image-decoders/ImageDecoder.h
index eaebaf2dc4fe47c24f7a203c5bdc0a0d6c66e919..c446588d88e02c98dce705bc6b595444b460a259 100644
--- a/sky/engine/platform/image-decoders/ImageDecoder.h
+++ b/sky/engine/platform/image-decoders/ImageDecoder.h
@@ -43,10 +43,6 @@
#if USE(QCMSLIB)
#include "qcms.h"
-#if OS(MACOSX)
-#include <ApplicationServices/ApplicationServices.h>
-#include "wtf/RetainPtr.h"
-#endif
#endif
namespace blink {
@@ -201,22 +197,11 @@ public:
: m_outputDeviceProfile(0)
{
// FIXME: Add optional ICCv4 support.
-#if OS(MACOSX)
- RetainPtr<CGColorSpaceRef> monitorColorSpace(AdoptCF, CGDisplayCopyColorSpace(CGMainDisplayID()));
- CFDataRef iccProfile(CGColorSpaceCopyICCProfile(monitorColorSpace.get()));
- if (iccProfile) {
- size_t length = CFDataGetLength(iccProfile);
- const unsigned char* systemProfile = CFDataGetBytePtr(iccProfile);
- m_outputDeviceProfile = qcms_profile_from_memory(systemProfile, length);
- CFRelease(iccProfile);
- }
-#else
// FIXME: add support for multiple monitors.
ColorProfile profile;
screenColorProfile(profile);
if (!profile.isEmpty())
m_outputDeviceProfile = qcms_profile_from_memory(profile.data(), profile.size());
-#endif
if (m_outputDeviceProfile && qcms_profile_is_bogus(m_outputDeviceProfile)) {
qcms_profile_release(m_outputDeviceProfile);
m_outputDeviceProfile = 0;

Powered by Google App Engine
This is Rietveld 408576698