OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/blink/webmediaplayer_impl.h" | 5 #include "media/blink/webmediaplayer_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 } | 672 } |
673 | 673 |
674 void WebMediaPlayerImpl::setContentDecryptionModule( | 674 void WebMediaPlayerImpl::setContentDecryptionModule( |
675 blink::WebContentDecryptionModule* cdm, | 675 blink::WebContentDecryptionModule* cdm, |
676 blink::WebContentDecryptionModuleResult result) { | 676 blink::WebContentDecryptionModuleResult result) { |
677 DCHECK(main_task_runner_->BelongsToCurrentThread()); | 677 DCHECK(main_task_runner_->BelongsToCurrentThread()); |
678 | 678 |
679 encrypted_media_support_->SetContentDecryptionModule(cdm, result); | 679 encrypted_media_support_->SetContentDecryptionModule(cdm, result); |
680 } | 680 } |
681 | 681 |
682 void WebMediaPlayerImpl::setContentDecryptionModuleSync( | |
683 blink::WebContentDecryptionModule* cdm) { | |
684 DCHECK(main_task_runner_->BelongsToCurrentThread()); | |
685 | |
686 encrypted_media_support_->SetContentDecryptionModuleSync(cdm); | |
687 } | |
688 | |
689 void WebMediaPlayerImpl::OnPipelineSeeked(bool time_changed, | 682 void WebMediaPlayerImpl::OnPipelineSeeked(bool time_changed, |
690 PipelineStatus status) { | 683 PipelineStatus status) { |
691 DVLOG(1) << __FUNCTION__ << "(" << time_changed << ", " << status << ")"; | 684 DVLOG(1) << __FUNCTION__ << "(" << time_changed << ", " << status << ")"; |
692 DCHECK(main_task_runner_->BelongsToCurrentThread()); | 685 DCHECK(main_task_runner_->BelongsToCurrentThread()); |
693 seeking_ = false; | 686 seeking_ = false; |
694 if (pending_seek_) { | 687 if (pending_seek_) { |
695 pending_seek_ = false; | 688 pending_seek_ = false; |
696 seek(pending_seek_seconds_); | 689 seek(pending_seek_seconds_); |
697 return; | 690 return; |
698 } | 691 } |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1029 compositor_task_runner_->PostTask(FROM_HERE, | 1022 compositor_task_runner_->PostTask(FROM_HERE, |
1030 base::Bind(&GetCurrentFrameAndSignal, | 1023 base::Bind(&GetCurrentFrameAndSignal, |
1031 base::Unretained(compositor_), | 1024 base::Unretained(compositor_), |
1032 &video_frame, | 1025 &video_frame, |
1033 &event)); | 1026 &event)); |
1034 event.Wait(); | 1027 event.Wait(); |
1035 return video_frame; | 1028 return video_frame; |
1036 } | 1029 } |
1037 | 1030 |
1038 } // namespace media | 1031 } // namespace media |
OLD | NEW |