Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Side by Side Diff: media/blink/webmediaplayer_cast_android.h

Issue 2283493003: Delete browser MSE implementation. (Closed)
Patch Set: Actually delete MSP. Cleanse references. Remove AudioTrack usage. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // Delete this file when WMPI_CAST is no longer needed. 5 // Delete this file when WMPI_CAST is no longer needed.
6 6
7 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_ 7 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_
8 #define MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_ 8 #define MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // bool paused() const override; 84 // bool paused() const override;
85 85
86 // True if the loaded media has a playable video track. 86 // True if the loaded media has a playable video track.
87 // bool hasVideo() const override; 87 // bool hasVideo() const override;
88 88
89 // This function is called by the RendererMediaPlayerManager to pause the 89 // This function is called by the RendererMediaPlayerManager to pause the
90 // video and release the media player and surface texture when we switch tabs. 90 // video and release the media player and surface texture when we switch tabs.
91 // However, the actual GlTexture is not released to keep the video screenshot. 91 // However, the actual GlTexture is not released to keep the video screenshot.
92 void SuspendAndReleaseResources() override; 92 void SuspendAndReleaseResources() override;
93 93
94 void OnWaitingForDecryptionKey() override;
95
96 bool paused() const override; 94 bool paused() const override;
97 bool hasVideo() const override; 95 bool hasVideo() const override;
98 96
99 void SetDeviceScaleFactor(float scale_factor); 97 void SetDeviceScaleFactor(float scale_factor);
100 scoped_refptr<VideoFrame> GetCastingBanner(); 98 scoped_refptr<VideoFrame> GetCastingBanner();
101 void setPoster(const blink::WebURL& poster); 99 void setPoster(const blink::WebURL& poster);
102 100
103 private: 101 private:
104 WebMediaPlayerImpl* webmediaplayer_; 102 WebMediaPlayerImpl* webmediaplayer_;
105 blink::WebMediaPlayerClient* client_; 103 blink::WebMediaPlayerClient* client_;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Make a texture-backed video of the given size containing the given message. 135 // Make a texture-backed video of the given size containing the given message.
138 MEDIA_BLINK_EXPORT scoped_refptr<VideoFrame> MakeTextFrameForCast( 136 MEDIA_BLINK_EXPORT scoped_refptr<VideoFrame> MakeTextFrameForCast(
139 const std::string& remote_playback_message, 137 const std::string& remote_playback_message,
140 gfx::Size canvas_size, 138 gfx::Size canvas_size,
141 gfx::Size natural_size, 139 gfx::Size natural_size,
142 const base::Callback<gpu::gles2::GLES2Interface*()>& context_3d_cb); 140 const base::Callback<gpu::gles2::GLES2Interface*()>& context_3d_cb);
143 141
144 } // namespace media 142 } // namespace media
145 143
146 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_ 144 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698