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

Unified Diff: ui/gfx/icc_profile.h

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/gfx.gyp ('k') | ui/gfx/icc_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/icc_profile.h
diff --git a/ui/gfx/icc_profile.h b/ui/gfx/icc_profile.h
index 3b34ca2d432c2b94a857ff7e74a292c9f9cddc6c..7a2ad76894e82f43e99b7328963acc00fbe2866f 100644
--- a/ui/gfx/icc_profile.h
+++ b/ui/gfx/icc_profile.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <vector>
+#include "base/gtest_prod_util.h"
#include "ui/gfx/color_space.h"
#if defined(OS_MACOSX)
@@ -57,7 +58,7 @@ class GFX_EXPORT ICCProfile {
#endif
private:
- static ICCProfile FromData(const std::vector<char>& icc_profile);
+ static ICCProfile FromData(const char* icc_profile, size_t size);
static bool IsValidProfileLength(size_t length);
bool valid_ = false;
@@ -67,6 +68,7 @@ class GFX_EXPORT ICCProfile {
// profile from a ColorSpace object created from it.
uint64_t id_ = 0;
+ FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, BT709toSRGBICC);
friend class ColorSpace;
friend struct IPC::ParamTraits<gfx::ICCProfile>;
};
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/icc_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698