| 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 m_frameBufferCache.resize(1); | 290 m_frameBufferCache.resize(1); |
| 291 m_frameBufferCache[0].setRequiredPreviousFrameIndex( | 291 m_frameBufferCache[0].setRequiredPreviousFrameIndex( |
| 292 findRequiredPreviousFrame(0, false)); | 292 findRequiredPreviousFrame(0, false)); |
| 293 } | 293 } |
| 294 m_frameBufferCache[0].setMemoryAllocator(allocator); | 294 m_frameBufferCache[0].setMemoryAllocator(allocator); |
| 295 } | 295 } |
| 296 | 296 |
| 297 virtual bool canDecodeToYUV() { return false; } | 297 virtual bool canDecodeToYUV() { return false; } |
| 298 virtual bool decodeToYUV() { return false; } | 298 virtual bool decodeToYUV() { return false; } |
| 299 virtual void setImagePlanes(PassOwnPtr<ImagePlanes>) { } | 299 virtual void setImagePlanes(PassOwnPtr<ImagePlanes>) { } |
| 300 virtual bool canDecodeTo(size_t index, ImageFrame::ColorType outputType) |
| 301 { |
| 302 return outputType == ImageFrame::N32; |
| 303 } |
| 300 | 304 |
| 301 protected: | 305 protected: |
| 302 // Calculates the most recent frame whose image data may be needed in | 306 // Calculates the most recent frame whose image data may be needed in |
| 303 // order to decode frame |frameIndex|, based on frame disposal methods | 307 // order to decode frame |frameIndex|, based on frame disposal methods |
| 304 // and |frameRectIsOpaque|, where |frameRectIsOpaque| signifies whether | 308 // and |frameRectIsOpaque|, where |frameRectIsOpaque| signifies whether |
| 305 // the rectangle of frame at |frameIndex| is known to be opaque. | 309 // the rectangle of frame at |frameIndex| is known to be opaque. |
| 306 // If no previous frame's data is required, returns WTF::kNotFound. | 310 // If no previous frame's data is required, returns WTF::kNotFound. |
| 307 // | 311 // |
| 308 // This function requires that the previous frame's | 312 // This function requires that the previous frame's |
| 309 // |m_requiredPreviousFrameIndex| member has been set correctly. The | 313 // |m_requiredPreviousFrameIndex| member has been set correctly. The |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 | 363 |
| 360 IntSize m_size; | 364 IntSize m_size; |
| 361 bool m_sizeAvailable; | 365 bool m_sizeAvailable; |
| 362 bool m_isAllDataReceived; | 366 bool m_isAllDataReceived; |
| 363 bool m_failed; | 367 bool m_failed; |
| 364 }; | 368 }; |
| 365 | 369 |
| 366 } // namespace blink | 370 } // namespace blink |
| 367 | 371 |
| 368 #endif | 372 #endif |
| OLD | NEW |