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

Unified Diff: ui/gfx/image/image.h

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 | « chrome/browser/favicon/favicon_util.cc ('k') | ui/gfx/image/image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image.h
diff --git a/ui/gfx/image/image.h b/ui/gfx/image/image.h
index ab13e84c001fb3533f6ac626cecbbb1ca3a7b99c..e9619dca21e5ec9a8f4334feae7d84987e97aa92 100644
--- a/ui/gfx/image/image.h
+++ b/ui/gfx/image/image.h
@@ -28,6 +28,10 @@
#include "ui/base/ui_export.h"
#include "ui/gfx/native_widget_types.h"
+#if defined(OS_MACOSX) && !defined(OS_IOS)
+typedef struct CGColorSpace* CGColorSpaceRef;
+#endif
+
class SkBitmap;
namespace {
@@ -175,6 +179,13 @@ class UI_EXPORT Image {
// Swaps this image's internal representations with |other|.
void SwapRepresentations(gfx::Image* other);
+#if defined(OS_MACOSX) && !defined(OS_IOS)
+ // Set the default representation's color space. This is used for converting
+ // to NSImage. This is used to compensate for PNGCodec not writing or reading
+ // colorspace ancillary chunks. (sRGB, iCCP).
+ void SetSourceColorSpace(CGColorSpaceRef color_space);
+#endif // defined(OS_MACOSX) && !defined(OS_IOS)
+
private:
// Returns the type of the default representation.
RepresentationType DefaultRepresentationType() const;
« no previous file with comments | « chrome/browser/favicon/favicon_util.cc ('k') | ui/gfx/image/image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698