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

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

Issue 2271683004: Revert of Support for custom primaries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « ui/gfx/icc_profile.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/ipc/color/gfx_param_traits.cc
diff --git a/ui/gfx/ipc/color/gfx_param_traits.cc b/ui/gfx/ipc/color/gfx_param_traits.cc
index 6129e1dc53ed01384d7dc042bfc6d41989227bbe..52c69768d8a5f29a7d0773d13311ea04be6757bc 100644
--- a/ui/gfx/ipc/color/gfx_param_traits.cc
+++ b/ui/gfx/ipc/color/gfx_param_traits.cc
@@ -16,10 +16,6 @@
GetParamSize(s, p.matrix_);
GetParamSize(s, p.range_);
GetParamSize(s, p.icc_profile_id_);
- if (p.primaries_ == gfx::ColorSpace::PrimaryID::CUSTOM) {
- for (int i = 0; i < 12; i++)
- GetParamSize(s, p.custom_primary_matrix_[i]);
- }
}
void ParamTraits<gfx::ColorSpace>::Write(base::Pickle* m,
@@ -29,10 +25,6 @@
WriteParam(m, p.matrix_);
WriteParam(m, p.range_);
WriteParam(m, p.icc_profile_id_);
- if (p.primaries_ == gfx::ColorSpace::PrimaryID::CUSTOM) {
- for (int i = 0; i < 12; i++)
- WriteParam(m, p.custom_primary_matrix_[i]);
- }
}
bool ParamTraits<gfx::ColorSpace>::Read(const base::Pickle* m,
@@ -49,12 +41,6 @@
if (!ReadParam(m, iter, &r->icc_profile_id_))
return false;
- if (r->primaries_ == gfx::ColorSpace::PrimaryID::CUSTOM) {
- for (int i = 0; i < 12; i++) {
- if (!ReadParam(m, iter, r->custom_primary_matrix_ + i))
- return false;
- }
- }
return true;
}
« no previous file with comments | « ui/gfx/icc_profile.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698