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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 m_frameBufferCache[0].setRequiredPreviousFrameIndex( | 259 m_frameBufferCache[0].setRequiredPreviousFrameIndex( |
260 findRequiredPreviousFrame(0, false)); | 260 findRequiredPreviousFrame(0, false)); |
261 } | 261 } |
262 m_frameBufferCache[0].setMemoryAllocator(allocator); | 262 m_frameBufferCache[0].setMemoryAllocator(allocator); |
263 } | 263 } |
264 | 264 |
265 virtual bool canDecodeToYUV() { return false; } | 265 virtual bool canDecodeToYUV() { return false; } |
266 virtual bool decodeToYUV() { return false; } | 266 virtual bool decodeToYUV() { return false; } |
267 virtual void setImagePlanes(std::unique_ptr<ImagePlanes>) { } | 267 virtual void setImagePlanes(std::unique_ptr<ImagePlanes>) { } |
268 | 268 |
| 269 static size_t longestSignatureLength(); |
| 270 |
269 protected: | 271 protected: |
270 // Calculates the most recent frame whose image data may be needed in | 272 // Calculates the most recent frame whose image data may be needed in |
271 // order to decode frame |frameIndex|, based on frame disposal methods | 273 // order to decode frame |frameIndex|, based on frame disposal methods |
272 // and |frameRectIsOpaque|, where |frameRectIsOpaque| signifies whether | 274 // and |frameRectIsOpaque|, where |frameRectIsOpaque| signifies whether |
273 // the rectangle of frame at |frameIndex| is known to be opaque. | 275 // the rectangle of frame at |frameIndex| is known to be opaque. |
274 // If no previous frame's data is required, returns WTF::kNotFound. | 276 // If no previous frame's data is required, returns WTF::kNotFound. |
275 // | 277 // |
276 // This function requires that the previous frame's | 278 // This function requires that the previous frame's |
277 // |m_requiredPreviousFrameIndex| member has been set correctly. The | 279 // |m_requiredPreviousFrameIndex| member has been set correctly. The |
278 // easiest way to ensure this is for subclasses to call this method and | 280 // easiest way to ensure this is for subclasses to call this method and |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 bool m_failed; | 333 bool m_failed; |
332 | 334 |
333 #if USE(QCMSLIB) | 335 #if USE(QCMSLIB) |
334 QCMSTransformUniquePtr m_sourceToOutputDeviceColorTransform; | 336 QCMSTransformUniquePtr m_sourceToOutputDeviceColorTransform; |
335 #endif | 337 #endif |
336 }; | 338 }; |
337 | 339 |
338 } // namespace blink | 340 } // namespace blink |
339 | 341 |
340 #endif | 342 #endif |
OLD | NEW |