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

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

Issue 2749653003: Prototype HTMLVideoElement properties for WebGL texImage2D (Closed)
Patch Set: rebase Created 3 years, 8 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
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 // Pipeline media duration overridden by tests. 708 // Pipeline media duration overridden by tests.
705 base::Optional<base::TimeDelta> pipeline_media_duration_for_test_; 709 base::Optional<base::TimeDelta> pipeline_media_duration_for_test_;
706 710
707 // Whether the video requires a user gesture to resume after it was paused in 711 // Whether the video requires a user gesture to resume after it was paused in
708 // the background. Affects the value of ShouldPauseVideoWhenHidden(). 712 // the background. Affects the value of ShouldPauseVideoWhenHidden().
709 bool video_locked_when_paused_when_hidden_ = false; 713 bool video_locked_when_paused_when_hidden_ = false;
710 714
711 // Whether embedded media experience is currently enabled. 715 // Whether embedded media experience is currently enabled.
712 bool embedded_media_experience_enabled_ = false; 716 bool embedded_media_experience_enabled_ = false;
713 717
718 gfx::Size last_uploaded_frame_size_;
719 base::TimeDelta last_uploaded_frame_timestamp_;
720
714 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 721 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
715 }; 722 };
716 723
717 } // namespace media 724 } // namespace media
718 725
719 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 726 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698