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

Unified Diff: ui/gfx/test/icc_profiles.cc

Issue 2663153002: Fix id tracking bug in ICCProfile (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/test/icc_profiles.cc
diff --git a/ui/gfx/test/icc_profiles.cc b/ui/gfx/test/icc_profiles.cc
index 3ce6917d43a4bb4622d02a0cea1cb0b5843df22b..459ad54499e390c22ee7087ed99aaa19092b39a6 100644
--- a/ui/gfx/test/icc_profiles.cc
+++ b/ui/gfx/test/icc_profiles.cc
@@ -536,26 +536,27 @@ const unsigned char adobe_rgb_profile_data[] = {
}
ICCProfile ICCProfileForTestingAdobeRGB() {
- return ICCProfile::FromData(
+ return ICCProfile::FromDataWithId(
reinterpret_cast<const char*>(adobe_rgb_profile_data),
- arraysize(adobe_rgb_profile_data));
+ arraysize(adobe_rgb_profile_data), ICCProfile::test_id_adobe_rgb_);
}
ICCProfile ICCProfileForTestingGenericRGB() {
- return ICCProfile::FromData(
+ return ICCProfile::FromDataWithId(
reinterpret_cast<const char*>(generic_rgb_profile_data),
- arraysize(generic_rgb_profile_data));
+ arraysize(generic_rgb_profile_data), ICCProfile::test_id_generic_rgb_);
}
ICCProfile ICCProfileForTestingSRGB() {
- return ICCProfile::FromData(reinterpret_cast<const char*>(srgb_profile_data),
- arraysize(srgb_profile_data));
+ return ICCProfile::FromDataWithId(
+ reinterpret_cast<const char*>(srgb_profile_data),
+ arraysize(srgb_profile_data), ICCProfile::test_id_srgb_);
}
ICCProfile ICCProfileForTestingColorSpin() {
- return ICCProfile::FromData(
+ return ICCProfile::FromDataWithId(
reinterpret_cast<const char*>(colorspin_profile_data),
- arraysize(colorspin_profile_data));
+ arraysize(colorspin_profile_data), ICCProfile::test_id_color_spin_);
}
} // namespace gfx
« third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp ('K') | « ui/gfx/icc_profile.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698