| 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 m_frameBufferCache.resize(1); | 285 m_frameBufferCache.resize(1); |
| 286 m_frameBufferCache[0].setRequiredPreviousFrameIndex( | 286 m_frameBufferCache[0].setRequiredPreviousFrameIndex( |
| 287 findRequiredPreviousFrame(0, false)); | 287 findRequiredPreviousFrame(0, false)); |
| 288 } | 288 } |
| 289 m_frameBufferCache[0].setMemoryAllocator(allocator); | 289 m_frameBufferCache[0].setMemoryAllocator(allocator); |
| 290 } | 290 } |
| 291 | 291 |
| 292 virtual bool canDecodeToYUV() { return false; } | 292 virtual bool canDecodeToYUV() { return false; } |
| 293 virtual bool decodeToYUV() { return false; } | 293 virtual bool decodeToYUV() { return false; } |
| 294 virtual void setImagePlanes(PassOwnPtr<ImagePlanes>) { } | 294 virtual void setImagePlanes(PassOwnPtr<ImagePlanes>) { } |
| 295 virtual bool canDecodeToRGB565() { return false; } |
| 296 virtual bool setDecodeRGB565Enabled(const bool enable) { return false; } |
| 295 | 297 |
| 296 protected: | 298 protected: |
| 297 // Calculates the most recent frame whose image data may be needed in | 299 // Calculates the most recent frame whose image data may be needed in |
| 298 // order to decode frame |frameIndex|, based on frame disposal methods | 300 // order to decode frame |frameIndex|, based on frame disposal methods |
| 299 // and |frameRectIsOpaque|, where |frameRectIsOpaque| signifies whether | 301 // and |frameRectIsOpaque|, where |frameRectIsOpaque| signifies whether |
| 300 // the rectangle of frame at |frameIndex| is known to be opaque. | 302 // the rectangle of frame at |frameIndex| is known to be opaque. |
| 301 // If no previous frame's data is required, returns WTF::kNotFound. | 303 // If no previous frame's data is required, returns WTF::kNotFound. |
| 302 // | 304 // |
| 303 // This function requires that the previous frame's | 305 // This function requires that the previous frame's |
| 304 // |m_requiredPreviousFrameIndex| member has been set correctly. The | 306 // |m_requiredPreviousFrameIndex| member has been set correctly. The |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 | 356 |
| 355 IntSize m_size; | 357 IntSize m_size; |
| 356 bool m_sizeAvailable; | 358 bool m_sizeAvailable; |
| 357 bool m_isAllDataReceived; | 359 bool m_isAllDataReceived; |
| 358 bool m_failed; | 360 bool m_failed; |
| 359 }; | 361 }; |
| 360 | 362 |
| 361 } // namespace blink | 363 } // namespace blink |
| 362 | 364 |
| 363 #endif | 365 #endif |
| OLD | NEW |