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

Side by Side Diff: content/renderer/media/webmediaplayer_ms.h

Issue 2536893002: Reset WebMediaPlayerMS video layer on rotation change (Closed)
Patch Set: Created 4 years 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 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 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 bool premultiply_alpha, 157 bool premultiply_alpha,
158 bool flip_y) override; 158 bool flip_y) override;
159 159
160 private: 160 private:
161 friend class WebMediaPlayerMSTest; 161 friend class WebMediaPlayerMSTest;
162 162
163 void OnFirstFrameReceived(media::VideoRotation video_rotation, 163 void OnFirstFrameReceived(media::VideoRotation video_rotation,
164 bool is_opaque); 164 bool is_opaque);
165 void OnOpacityChanged(bool is_opaque); 165 void OnOpacityChanged(bool is_opaque);
166 166
167 // Initializes |video_weblayer_| with given params.
168 void ResetVideoLayer(media::VideoRotation video_rotation, bool is_opaque);
169
167 // Need repaint due to state change. 170 // Need repaint due to state change.
168 void RepaintInternal(); 171 void RepaintInternal();
169 172
170 // The callback for source to report error. 173 // The callback for source to report error.
171 void OnSourceError(); 174 void OnSourceError();
172 175
173 // Helpers that set the network/ready state and notifies the client if 176 // Helpers that set the network/ready state and notifies the client if
174 // they've changed. 177 // they've changed.
175 void SetNetworkState(blink::WebMediaPlayer::NetworkState state); 178 void SetNetworkState(blink::WebMediaPlayer::NetworkState state);
176 void SetReadyState(blink::WebMediaPlayer::ReadyState state); 179 void SetReadyState(blink::WebMediaPlayer::ReadyState state);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // True if playback should be started upon the next call to OnShown(). Only 242 // True if playback should be started upon the next call to OnShown(). Only
240 // used on Android. 243 // used on Android.
241 bool should_play_upon_shown_; 244 bool should_play_upon_shown_;
242 245
243 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); 246 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS);
244 }; 247 };
245 248
246 } // namespace content 249 } // namespace content
247 250
248 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 251 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_ms.cc » ('j') | content/renderer/media/webmediaplayer_ms.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698