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

Unified Diff: ui/gfx/color_space.h

Issue 2852953003: Use real colorspace for DirectComposition overlays.
Patch Set: rebase Created 3 years, 7 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/color_space.h
diff --git a/ui/gfx/color_space.h b/ui/gfx/color_space.h
index aaca2de3ab38dec94a97f2a0b3575b6eb75d99f2..075b9d651193a88b6f01fe77fcae85d1d4848e0b 100644
--- a/ui/gfx/color_space.h
+++ b/ui/gfx/color_space.h
@@ -10,6 +10,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
+#include "base/pickle.h"
#include "build/build_config.h"
#include "third_party/skia/include/core/SkColorSpace.h"
#include "ui/gfx/gfx_export.h"
@@ -166,6 +167,9 @@ class GFX_EXPORT ColorSpace {
// range, and unspecified spaces.
sk_sp<SkColorSpace> ToSkColorSpace() const;
+ bool Serialize(base::Pickle* pickle) const;
+ bool ReadFromPickle(base::PickleIterator* iter);
+
// Populate |icc_profile| with an ICC profile that represents this color
// space. Returns false if this space is not representable.
bool GetICCProfile(ICCProfile* icc_profile) const;

Powered by Google App Engine
This is Rietveld 408576698