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

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

Issue 2828833002: color: Fix custom params IPC (Closed)
Patch Set: color: Fix custom params IPC Created 3 years, 8 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 | « cc/ipc/struct_traits_unittest.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 657adc32735d78ed84b5b8ac55b0a99a17d28701..7a1f8a0178b1fee872a134b8a9c15fae8a976a7e 100644
--- a/ui/gfx/ipc/color/gfx_param_traits.cc
+++ b/ui/gfx/ipc/color/gfx_param_traits.cc
@@ -17,9 +17,9 @@ void ParamTraits<gfx::ColorSpace>::GetSize(base::PickleSizer* s,
GetParamSize(s, p.range_);
GetParamSize(s, p.icc_profile_id_);
if (p.primaries_ == gfx::ColorSpace::PrimaryID::CUSTOM)
- s->AddData(sizeof(p.custom_primary_matrix_));
+ s->AddBytes(sizeof(p.custom_primary_matrix_));
if (p.transfer_ == gfx::ColorSpace::TransferID::CUSTOM)
- s->AddData(sizeof(p.custom_transfer_params_));
+ s->AddBytes(sizeof(p.custom_transfer_params_));
}
void ParamTraits<gfx::ColorSpace>::Write(base::Pickle* m,
« no previous file with comments | « cc/ipc/struct_traits_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698