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) 2008-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
5 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) | 5 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 309 |
310 // Called to obtain the RGBA32Buffer full of decoded data for rendering. | 310 // Called to obtain the RGBA32Buffer full of decoded data for rendering. |
311 // The decoder plugin will decode as much of the frame as it can before | 311 // The decoder plugin will decode as much of the frame as it can before |
312 // handing back the buffer. | 312 // handing back the buffer. |
313 virtual RGBA32Buffer* frameBufferAtIndex(size_t) = 0; | 313 virtual RGBA32Buffer* frameBufferAtIndex(size_t) = 0; |
314 | 314 |
315 // Whether or not the underlying image format even supports alpha | 315 // Whether or not the underlying image format even supports alpha |
316 // transparency. | 316 // transparency. |
317 virtual bool supportsAlpha() const { return true; } | 317 virtual bool supportsAlpha() const { return true; } |
318 | 318 |
| 319 void setIgnoreGammaAndColorProfile(bool flag) { m_ignoreGammaAndColorPro
file = flag; } |
| 320 |
319 // Whether or not the gamma and color profile are applied. | 321 // Whether or not the gamma and color profile are applied. |
320 bool ignoresGammaAndColorProfile() const { return m_ignoreGammaAndColorP
rofile; } | 322 bool ignoresGammaAndColorProfile() const { return m_ignoreGammaAndColorP
rofile; } |
321 | 323 |
322 // Sets the "decode failure" flag. For caller convenience (since so | 324 // Sets the "decode failure" flag. For caller convenience (since so |
323 // many callers want to return false after calling this), returns false | 325 // many callers want to return false after calling this), returns false |
324 // to enable easy tailcalling. Subclasses may override this to also | 326 // to enable easy tailcalling. Subclasses may override this to also |
325 // clean up any local data. | 327 // clean up any local data. |
326 virtual bool setFailed() | 328 virtual bool setFailed() |
327 { | 329 { |
328 m_failed = true; | 330 m_failed = true; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 IntSize m_size; | 377 IntSize m_size; |
376 bool m_sizeAvailable; | 378 bool m_sizeAvailable; |
377 int m_maxNumPixels; | 379 int m_maxNumPixels; |
378 bool m_isAllDataReceived; | 380 bool m_isAllDataReceived; |
379 bool m_failed; | 381 bool m_failed; |
380 }; | 382 }; |
381 | 383 |
382 } // namespace WebCore | 384 } // namespace WebCore |
383 | 385 |
384 #endif | 386 #endif |
OLD | NEW |