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

Unified Diff: third_party/WebKit/Source/platform/graphics/ColorSpaceProfileData.cpp

Issue 2426723005: Use SkColorSpaceXform to handle color conversions in decoders (Closed)
Patch Set: Remove ifdefs - fixes blink_platform_unittests Created 4 years, 2 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: third_party/WebKit/Source/platform/graphics/ColorSpaceProfileData.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ColorSpaceProfileData.cpp b/third_party/WebKit/Source/platform/graphics/ColorSpaceProfileData.cpp
index 763efe5517dc8083d46c68cf1981f17fcf5d26ab..4f3f2bcd56b38c510f5dcbcf6b91d5e2737bce5f 100644
--- a/third_party/WebKit/Source/platform/graphics/ColorSpaceProfileData.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ColorSpaceProfileData.cpp
@@ -6,8 +6,6 @@
#include "wtf/Assertions.h"
-#if USE(QCMSLIB)
-
struct bt709ColorProfile {
static char* data() // BT.709 HDTV ITU
{
@@ -94,12 +92,8 @@ struct bt601ColorProfile {
static size_t size() { return 380u; }
};
-#endif // USE(QCMSLIB)
-
namespace blink {
-#if USE(QCMSLIB)
-
void bt709ColorProfileData(Vector<char>& data) {
ASSERT(WTF::isMainThread() && data.isEmpty());
@@ -112,16 +106,4 @@ void bt601ColorProfileData(Vector<char>& data) {
data.append(bt601ColorProfile::data(), bt601ColorProfile::size());
}
-#else
-
-void bt709ColorProfileData(Vector<char>&) {
- ASSERT_NOT_REACHED();
-}
-
-void bt601ColorProfileData(Vector<char>&) {
- ASSERT_NOT_REACHED();
-}
-
-#endif // USE(QCMSLIB)
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698