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

Side by Side Diff: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h

Issue 1796293003: Image decode color: Push color profile from browser to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 ImageOrientation orientation() const { return m_orientation; } 234 ImageOrientation orientation() const { return m_orientation; }
235 235
236 static bool deferredImageDecodingEnabled(); 236 static bool deferredImageDecodingEnabled();
237 237
238 void setIgnoreGammaAndColorProfile(bool flag) { m_ignoreGammaAndColorProfile = flag; } 238 void setIgnoreGammaAndColorProfile(bool flag) { m_ignoreGammaAndColorProfile = flag; }
239 bool ignoresGammaAndColorProfile() const { return m_ignoreGammaAndColorProfi le; } 239 bool ignoresGammaAndColorProfile() const { return m_ignoreGammaAndColorProfi le; }
240 240
241 bool hasColorProfile() const; 241 bool hasColorProfile() const;
242 242
243 static void setOutputDeviceColorProfile(const WebVector<char>&);
243 #if USE(QCMSLIB) 244 #if USE(QCMSLIB)
244 void setColorProfileAndTransform(const char* iccData, unsigned iccLength, bo ol hasAlpha, bool useSRGB); 245 void setColorProfileAndTransform(const char* iccData, unsigned iccLength, bo ol hasAlpha, bool useSRGB);
245 qcms_transform* colorTransform() { return m_sourceToOutputDeviceColorTransfo rm.get(); } 246 qcms_transform* colorTransform() { return m_sourceToOutputDeviceColorTransfo rm.get(); }
246 #endif 247 #endif
247 248
248 // Sets the "decode failure" flag. For caller convenience (since so 249 // Sets the "decode failure" flag. For caller convenience (since so
249 // many callers want to return false after calling this), returns false 250 // many callers want to return false after calling this), returns false
250 // to enable easy tailcalling. Subclasses may override this to also 251 // to enable easy tailcalling. Subclasses may override this to also
251 // clean up any local data. 252 // clean up any local data.
252 virtual bool setFailed() 253 virtual bool setFailed()
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 bool m_failed; 348 bool m_failed;
348 349
349 #if USE(QCMSLIB) 350 #if USE(QCMSLIB)
350 OwnPtr<qcms_transform> m_sourceToOutputDeviceColorTransform; 351 OwnPtr<qcms_transform> m_sourceToOutputDeviceColorTransform;
351 #endif 352 #endif
352 }; 353 };
353 354
354 } // namespace blink 355 } // namespace blink
355 356
356 #endif 357 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698