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

Unified Diff: ui/gfx/ipc/color/gfx_param_traits.h

Issue 2652503002: Use SkICC in gfx::ICCProfile and gfx::ColorSpace (Closed)
Patch Set: Created 3 years, 11 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
Index: ui/gfx/ipc/color/gfx_param_traits.h
diff --git a/ui/gfx/ipc/color/gfx_param_traits.h b/ui/gfx/ipc/color/gfx_param_traits.h
index 81b63010071e2c0467fd9ec6226c0da41a230321..80212585119fa8fc8b1513bf4dbd0e8220e55052 100644
--- a/ui/gfx/ipc/color/gfx_param_traits.h
+++ b/ui/gfx/ipc/color/gfx_param_traits.h
@@ -29,6 +29,17 @@ struct GFX_IPC_COLOR_EXPORT ParamTraits<gfx::ColorSpace> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct GFX_IPC_COLOR_EXPORT ParamTraits<gfx::ICCProfile> {
+ typedef gfx::ICCProfile param_type;
+ static void GetSize(base::PickleSizer* s, const param_type& p);
+ static void Write(base::Pickle* m, const param_type& p);
+ static bool Read(const base::Pickle* m,
+ base::PickleIterator* iter,
+ param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
} // namespace IPC
#endif // UI_GFX_IPC_COLOR_GFX_PARAM_TRAITS_H_

Powered by Google App Engine
This is Rietveld 408576698