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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 String url = StripLeadingAndTrailingHTMLSpaces(ImageSourceURL()); | 411 String url = StripLeadingAndTrailingHTMLSpaces(ImageSourceURL()); |
412 if (url.IsEmpty()) | 412 if (url.IsEmpty()) |
413 return KURL(); | 413 return KURL(); |
414 return GetDocument().CompleteURL(url); | 414 return GetDocument().CompleteURL(url); |
415 } | 415 } |
416 | 416 |
417 PassRefPtr<Image> HTMLVideoElement::GetSourceImageForCanvas( | 417 PassRefPtr<Image> HTMLVideoElement::GetSourceImageForCanvas( |
418 SourceImageStatus* status, | 418 SourceImageStatus* status, |
419 AccelerationHint, | 419 AccelerationHint, |
420 SnapshotReason, | 420 SnapshotReason, |
421 const FloatSize&) const { | 421 const FloatSize&) { |
422 if (!HasAvailableVideoFrame()) { | 422 if (!HasAvailableVideoFrame()) { |
423 *status = kInvalidSourceImageStatus; | 423 *status = kInvalidSourceImageStatus; |
424 return nullptr; | 424 return nullptr; |
425 } | 425 } |
426 | 426 |
427 IntSize intrinsic_size(videoWidth(), videoHeight()); | 427 IntSize intrinsic_size(videoWidth(), videoHeight()); |
428 // FIXME: Not sure if we dhould we be doing anything with the AccelerationHint | 428 // FIXME: Not sure if we dhould we be doing anything with the AccelerationHint |
429 // argument here? | 429 // argument here? |
430 std::unique_ptr<ImageBuffer> image_buffer = | 430 std::unique_ptr<ImageBuffer> image_buffer = |
431 ImageBuffer::Create(intrinsic_size); | 431 ImageBuffer::Create(intrinsic_size); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 } | 516 } |
517 | 517 |
518 void HTMLVideoElement::DisableMediaRemoting() { | 518 void HTMLVideoElement::DisableMediaRemoting() { |
519 if (GetWebMediaPlayer()) | 519 if (GetWebMediaPlayer()) |
520 GetWebMediaPlayer()->RequestRemotePlaybackDisabled(true); | 520 GetWebMediaPlayer()->RequestRemotePlaybackDisabled(true); |
521 media_remoting_status_ = MediaRemotingStatus::kDisabled; | 521 media_remoting_status_ = MediaRemotingStatus::kDisabled; |
522 MediaRemotingStopped(); | 522 MediaRemotingStopped(); |
523 } | 523 } |
524 | 524 |
525 } // namespace blink | 525 } // namespace blink |
OLD | NEW |