| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 exceptionState)) | 381 exceptionState)) |
| 382 return ScriptPromise(); | 382 return ScriptPromise(); |
| 383 if (!ImageBitmap::isResizeOptionValid(options, exceptionState)) | 383 if (!ImageBitmap::isResizeOptionValid(options, exceptionState)) |
| 384 return ScriptPromise(); | 384 return ScriptPromise(); |
| 385 return ImageBitmapSource::fulfillImageBitmap( | 385 return ImageBitmapSource::fulfillImageBitmap( |
| 386 scriptState, | 386 scriptState, |
| 387 ImageBitmap::create(this, cropRect, | 387 ImageBitmap::create(this, cropRect, |
| 388 eventTarget.toLocalDOMWindow()->document(), options)); | 388 eventTarget.toLocalDOMWindow()->document(), options)); |
| 389 } | 389 } |
| 390 | 390 |
| 391 void HTMLVideoElement::webglUpdateLastUploaded() { |
| 392 if (webMediaPlayer() && |
| 393 webMediaPlayer()->getLastUploadedFrameInfo( |
| 394 &m_webglLastUploadedWidth, &m_webglLastUploadedHeight, |
| 395 &m_webglLastUploadedTimestamp)) { |
| 396 return; |
| 397 } |
| 398 |
| 399 // getCurrentFrameInfo was unavailable or failed |
| 400 m_webglLastUploadedWidth = 0; |
| 401 m_webglLastUploadedHeight = 0; |
| 402 m_webglLastUploadedTimestamp = 0.0; |
| 403 } |
| 404 |
| 391 } // namespace blink | 405 } // namespace blink |
| OLD | NEW |