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

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

Issue 2749653003: Prototype HTMLVideoElement properties for WebGL texImage2D (Closed)
Patch Set: move fields to WebGLTexture Created 3 years, 9 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 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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // True if the loaded media has a playable video/audio track. 133 // True if the loaded media has a playable video/audio track.
134 bool hasVideo() const override; 134 bool hasVideo() const override;
135 bool hasAudio() const override; 135 bool hasAudio() const override;
136 136
137 void enabledAudioTracksChanged( 137 void enabledAudioTracksChanged(
138 const blink::WebVector<blink::WebMediaPlayer::TrackId>& enabledTrackIds) 138 const blink::WebVector<blink::WebMediaPlayer::TrackId>& enabledTrackIds)
139 override; 139 override;
140 void selectedVideoTrackChanged( 140 void selectedVideoTrackChanged(
141 blink::WebMediaPlayer::TrackId* selectedTrackId) override; 141 blink::WebMediaPlayer::TrackId* selectedTrackId) override;
142 142
143 bool getLastUploadedFrameInfo(unsigned* width,
144 unsigned* height,
145 double* timestamp) override;
146
143 // Dimensions of the video. 147 // Dimensions of the video.
144 blink::WebSize naturalSize() const override; 148 blink::WebSize naturalSize() const override;
145 149
146 // Getters of playback state. 150 // Getters of playback state.
147 bool paused() const override; 151 bool paused() const override;
148 bool seeking() const override; 152 bool seeking() const override;
149 double duration() const override; 153 double duration() const override;
150 virtual double timelineOffset() const; 154 virtual double timelineOffset() const;
151 double currentTime() const override; 155 double currentTime() const override;
152 156
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 // Pipeline media duration overridden by tests. 707 // Pipeline media duration overridden by tests.
704 base::Optional<base::TimeDelta> pipeline_media_duration_for_test_; 708 base::Optional<base::TimeDelta> pipeline_media_duration_for_test_;
705 709
706 // Whether the video requires a user gesture to resume after it was paused in 710 // Whether the video requires a user gesture to resume after it was paused in
707 // the background. Affects the value of ShouldPauseVideoWhenHidden(). 711 // the background. Affects the value of ShouldPauseVideoWhenHidden().
708 bool video_locked_when_paused_when_hidden_ = false; 712 bool video_locked_when_paused_when_hidden_ = false;
709 713
710 // Whether embedded media experience is currently enabled. 714 // Whether embedded media experience is currently enabled.
711 bool embedded_media_experience_enabled_ = false; 715 bool embedded_media_experience_enabled_ = false;
712 716
717 gfx::Size last_uploaded_frame_size_;
718 base::TimeDelta last_uploaded_frame_timestamp_;
719
713 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 720 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
714 }; 721 };
715 722
716 } // namespace media 723 } // namespace media
717 724
718 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 725 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698