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

Unified Diff: ui/gfx/color_space.h

Issue 2150013003: Add IPC support for gfx::ColorSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl try Created 4 years, 5 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 | « content/renderer/render_view_impl.cc ('k') | ui/gfx/ipc/color/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_space.h
diff --git a/ui/gfx/color_space.h b/ui/gfx/color_space.h
index 44a85eb4a761a7d8457ef00635d0d01183430bd5..164ca0037d29d611fb1cc6b409ddea98a1ba81ed 100644
--- a/ui/gfx/color_space.h
+++ b/ui/gfx/color_space.h
@@ -16,6 +16,11 @@
#include <CoreGraphics/CGColorSpace.h>
#endif
+namespace IPC {
+template <class P>
+struct ParamTraits;
+} // namespace IPC
+
namespace gfx {
class GFX_EXPORT ColorSpace {
@@ -51,11 +56,10 @@ class GFX_EXPORT ColorSpace {
private:
struct Key;
class GlobalData;
- friend struct Key;
- friend class GlobalData;
enum class Type {
UNDEFINED,
ICC_PROFILE,
+ LAST = ICC_PROFILE
};
Type type_ = Type::UNDEFINED;
@@ -63,6 +67,11 @@ class GFX_EXPORT ColorSpace {
// (e.g, ICC profile). This structure is shared by all identical ColorSpace
// objects in the process. It is lazily initialized for named color spaces.
mutable scoped_refptr<GlobalData> global_data_;
+
+ friend struct Key;
+ friend class GlobalData;
+ friend struct IPC::ParamTraits<gfx::ColorSpace>;
+ friend struct IPC::ParamTraits<gfx::ColorSpace::Type>;
};
} // namespace gfx
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | ui/gfx/ipc/color/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698