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

Unified Diff: ui/gfx/icc_profile.cc

Issue 2203213002: ICC profile color translations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@color_correction7
Patch Set: win compile fix 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.h ('k') | ui/gfx/icc_profile_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/icc_profile.cc
diff --git a/ui/gfx/icc_profile.cc b/ui/gfx/icc_profile.cc
index cd3e4e88dc724724ba7cf47cf5bba899679eccec..9fbbdd0358121f75ef03f43623fa4a218eac51ae 100644
--- a/ui/gfx/icc_profile.cc
+++ b/ui/gfx/icc_profile.cc
@@ -46,11 +46,11 @@ bool ICCProfile::operator==(const ICCProfile& other) const {
}
// static
-ICCProfile ICCProfile::FromData(const std::vector<char>& icc_profile_data) {
+ICCProfile ICCProfile::FromData(const char* data, size_t size) {
ICCProfile icc_profile;
- if (IsValidProfileLength(icc_profile_data.size())) {
+ if (IsValidProfileLength(size)) {
icc_profile.valid_ = true;
- icc_profile.data_ = icc_profile_data;
+ icc_profile.data_.insert(icc_profile.data_.begin(), data, data + size);
}
if (!icc_profile.valid_)
return icc_profile;
« no previous file with comments | « ui/gfx/icc_profile.h ('k') | ui/gfx/icc_profile_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698