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

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: leave empty check Created 4 years, 5 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // Number of bytes in the decoded frame. Returns 0 if the decoder doesn't 214 // Number of bytes in the decoded frame. Returns 0 if the decoder doesn't
215 // have this frame cached (either because it hasn't been decoded, or because 215 // have this frame cached (either because it hasn't been decoded, or because
216 // it has been cleared). 216 // it has been cleared).
217 virtual size_t frameBytesAtIndex(size_t) const; 217 virtual size_t frameBytesAtIndex(size_t) const;
218 218
219 ImageOrientation orientation() const { return m_orientation; } 219 ImageOrientation orientation() const { return m_orientation; }
220 220
221 void setIgnoreGammaAndColorProfile(bool flag) { m_ignoreGammaAndColorProfile = flag; } 221 void setIgnoreGammaAndColorProfile(bool flag) { m_ignoreGammaAndColorProfile = flag; }
222 bool ignoresGammaAndColorProfile() const { return m_ignoreGammaAndColorProfi le; } 222 bool ignoresGammaAndColorProfile() const { return m_ignoreGammaAndColorProfi le; }
223 223
224 static void setTargetColorProfile(const WebVector<char>&);
224 bool hasColorProfile() const; 225 bool hasColorProfile() const;
225 226
226 #if USE(QCMSLIB) 227 #if USE(QCMSLIB)
227 void setColorProfileAndTransform(const char* iccData, unsigned iccLength, bo ol hasAlpha, bool useSRGB); 228 void setColorProfileAndTransform(const char* iccData, unsigned iccLength, bo ol hasAlpha, bool useSRGB);
228 qcms_transform* colorTransform() { return m_sourceToOutputDeviceColorTransfo rm.get(); } 229 qcms_transform* colorTransform() { return m_sourceToOutputDeviceColorTransfo rm.get(); }
229 #endif 230 #endif
230 231
231 // Sets the "decode failure" flag. For caller convenience (since so 232 // Sets the "decode failure" flag. For caller convenience (since so
232 // many callers want to return false after calling this), returns false 233 // many callers want to return false after calling this), returns false
233 // to enable easy tailcalling. Subclasses may override this to also 234 // to enable easy tailcalling. Subclasses may override this to also
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 bool m_failed; 331 bool m_failed;
331 332
332 #if USE(QCMSLIB) 333 #if USE(QCMSLIB)
333 QCMSTransformUniquePtr m_sourceToOutputDeviceColorTransform; 334 QCMSTransformUniquePtr m_sourceToOutputDeviceColorTransform;
334 #endif 335 #endif
335 }; 336 };
336 337
337 } // namespace blink 338 } // namespace blink
338 339
339 #endif 340 #endif
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698