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 "content/renderer/media/webmediaplayer_ms.h" | 5 #include "content/renderer/media/webmediaplayer_ms.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <limits> | 8 #include <limits> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 } | 563 } |
564 | 564 |
565 void WebMediaPlayerMS::OnPause() { | 565 void WebMediaPlayerMS::OnPause() { |
566 // TODO(perkj, magjed): See TODO in OnPlay(). | 566 // TODO(perkj, magjed): See TODO in OnPlay(). |
567 } | 567 } |
568 | 568 |
569 void WebMediaPlayerMS::OnVolumeMultiplierUpdate(double multiplier) { | 569 void WebMediaPlayerMS::OnVolumeMultiplierUpdate(double multiplier) { |
570 // TODO(perkj, magjed): See TODO in OnPlay(). | 570 // TODO(perkj, magjed): See TODO in OnPlay(). |
571 } | 571 } |
572 | 572 |
| 573 void WebMediaPlayerMS::OnBecamePersistentVideo(bool value) { |
| 574 get_client()->onBecamePersistentVideo(value); |
| 575 } |
| 576 |
573 bool WebMediaPlayerMS::copyVideoTextureToPlatformTexture( | 577 bool WebMediaPlayerMS::copyVideoTextureToPlatformTexture( |
574 gpu::gles2::GLES2Interface* gl, | 578 gpu::gles2::GLES2Interface* gl, |
575 unsigned int texture, | 579 unsigned int texture, |
576 bool premultiply_alpha, | 580 bool premultiply_alpha, |
577 bool flip_y) { | 581 bool flip_y) { |
578 TRACE_EVENT0("media", "WebMediaPlayerMS:copyVideoTextureToPlatformTexture"); | 582 TRACE_EVENT0("media", "WebMediaPlayerMS:copyVideoTextureToPlatformTexture"); |
579 DCHECK(thread_checker_.CalledOnValidThread()); | 583 DCHECK(thread_checker_.CalledOnValidThread()); |
580 | 584 |
581 scoped_refptr<media::VideoFrame> video_frame = | 585 scoped_refptr<media::VideoFrame> video_frame = |
582 compositor_->GetCurrentFrameWithoutUpdatingStatistics(); | 586 compositor_->GetCurrentFrameWithoutUpdatingStatistics(); |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 void WebMediaPlayerMS::ResetCanvasCache() { | 700 void WebMediaPlayerMS::ResetCanvasCache() { |
697 DCHECK(thread_checker_.CalledOnValidThread()); | 701 DCHECK(thread_checker_.CalledOnValidThread()); |
698 video_renderer_.ResetCache(); | 702 video_renderer_.ResetCache(); |
699 } | 703 } |
700 | 704 |
701 void WebMediaPlayerMS::TriggerResize() { | 705 void WebMediaPlayerMS::TriggerResize() { |
702 get_client()->sizeChanged(); | 706 get_client()->sizeChanged(); |
703 } | 707 } |
704 | 708 |
705 } // namespace content | 709 } // namespace content |
OLD | NEW |