| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |