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

Unified Diff: ui/gfx/color_profile_mac.mm

Issue 2106303002: Color: Rename gfx::ColorProfile to gfx::ColorSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « ui/gfx/color_profile.cc ('k') | ui/gfx/color_profile_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_profile_mac.mm
diff --git a/ui/gfx/color_profile_mac.mm b/ui/gfx/color_profile_mac.mm
deleted file mode 100644
index e8be1dfdc26d67cd7d00afef97d92160a30ad195..0000000000000000000000000000000000000000
--- a/ui/gfx/color_profile_mac.mm
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/gfx/color_profile.h"
-
-#import <Cocoa/Cocoa.h>
-#include <stddef.h>
-
-#include "base/mac/mac_util.h"
-#include "base/mac/scoped_cftyperef.h"
-#include "ui/gfx/mac/coordinate_conversion.h"
-
-namespace gfx {
-
-// static
-ColorProfile ColorProfile::GetFromBestMonitor() {
- ColorProfile profile;
- CGColorSpaceRef monitor_color_space(base::mac::GetSystemColorSpace());
- base::ScopedCFTypeRef<CFDataRef> icc_profile(
- CGColorSpaceCopyICCProfile(monitor_color_space));
- if (!icc_profile)
- return profile;
- size_t length = CFDataGetLength(icc_profile);
- if (!IsValidProfileLength(length))
- return profile;
- const unsigned char* data = CFDataGetBytePtr(icc_profile);
- profile.profile_.assign(data, data + length);
- return profile;
-}
-
-} // namespace gfx
« no previous file with comments | « ui/gfx/color_profile.cc ('k') | ui/gfx/color_profile_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698