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

Unified Diff: base/mac/mac_util.mm

Issue 16370006: Make the favicons look visually the same after refreshing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « base/mac/mac_util.h ('k') | chrome/browser/favicon/favicon_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/mac_util.mm
diff --git a/base/mac/mac_util.mm b/base/mac/mac_util.mm
index 32dc735df0659fcea0110f33d4853902e59b576d..e924f9021da361ef1992663575c2ceea7b38460f 100644
--- a/base/mac/mac_util.mm
+++ b/base/mac/mac_util.mm
@@ -144,6 +144,15 @@ bool FSRefFromPath(const std::string& path, FSRef* ref) {
return status == noErr;
}
+CGColorSpaceRef GetGenericRGBColorSpace() {
+ // Leaked. That's OK, it's scoped to the lifetime of the application.
+ static CGColorSpaceRef g_color_space_generic_rgb(
+ CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB));
+ DLOG_IF(ERROR, !g_color_space_generic_rgb) <<
+ "Couldn't get the generic RGB color space";
+ return g_color_space_generic_rgb;
+}
+
CGColorSpaceRef GetSRGBColorSpace() {
// Leaked. That's OK, it's scoped to the lifetime of the application.
static CGColorSpaceRef g_color_space_sRGB =
« no previous file with comments | « base/mac/mac_util.h ('k') | chrome/browser/favicon/favicon_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698