| OLD | NEW |
| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // animated images. | 212 // animated images. |
| 213 virtual float frameDurationAtIndex(size_t) const { return 0; } | 213 virtual float frameDurationAtIndex(size_t) const { return 0; } |
| 214 | 214 |
| 215 // Number of bytes in the decoded frame. Returns 0 if the decoder doesn't | 215 // Number of bytes in the decoded frame. Returns 0 if the decoder doesn't |
| 216 // have this frame cached (either because it hasn't been decoded, or because | 216 // have this frame cached (either because it hasn't been decoded, or because |
| 217 // it has been cleared). | 217 // it has been cleared). |
| 218 virtual size_t frameBytesAtIndex(size_t) const; | 218 virtual size_t frameBytesAtIndex(size_t) const; |
| 219 | 219 |
| 220 ImageOrientation orientation() const { return m_orientation; } | 220 ImageOrientation orientation() const { return m_orientation; } |
| 221 | 221 |
| 222 static bool deferredImageDecodingEnabled(); | |
| 223 | |
| 224 void setIgnoreGammaAndColorProfile(bool flag) { m_ignoreGammaAndColorProfile
= flag; } | 222 void setIgnoreGammaAndColorProfile(bool flag) { m_ignoreGammaAndColorProfile
= flag; } |
| 225 bool ignoresGammaAndColorProfile() const { return m_ignoreGammaAndColorProfi
le; } | 223 bool ignoresGammaAndColorProfile() const { return m_ignoreGammaAndColorProfi
le; } |
| 226 | 224 |
| 227 bool hasColorProfile() const; | 225 bool hasColorProfile() const; |
| 228 | 226 |
| 229 #if USE(QCMSLIB) | 227 #if USE(QCMSLIB) |
| 230 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); |
| 231 qcms_transform* colorTransform() { return m_sourceToOutputDeviceColorTransfo
rm.get(); } | 229 qcms_transform* colorTransform() { return m_sourceToOutputDeviceColorTransfo
rm.get(); } |
| 232 #endif | 230 #endif |
| 233 | 231 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 bool m_failed; | 331 bool m_failed; |
| 334 | 332 |
| 335 #if USE(QCMSLIB) | 333 #if USE(QCMSLIB) |
| 336 QCMSTransformUniquePtr m_sourceToOutputDeviceColorTransform; | 334 QCMSTransformUniquePtr m_sourceToOutputDeviceColorTransform; |
| 337 #endif | 335 #endif |
| 338 }; | 336 }; |
| 339 | 337 |
| 340 } // namespace blink | 338 } // namespace blink |
| 341 | 339 |
| 342 #endif | 340 #endif |
| OLD | NEW |