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

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

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. 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
« no previous file with comments | « content/renderer/sad_plugin.cc ('k') | 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void setBufferingStrategy( 117 void setBufferingStrategy(
118 blink::WebMediaPlayer::BufferingStrategy buffering_strategy) override; 118 blink::WebMediaPlayer::BufferingStrategy buffering_strategy) override;
119 blink::WebTimeRanges buffered() const override; 119 blink::WebTimeRanges buffered() const override;
120 blink::WebTimeRanges seekable() const override; 120 blink::WebTimeRanges seekable() const override;
121 121
122 // paint() the current video frame into |canvas|. This is used to support 122 // paint() the current video frame into |canvas|. This is used to support
123 // various APIs and functionalities, including but not limited to: <canvas>, 123 // various APIs and functionalities, including but not limited to: <canvas>,
124 // WebGL texImage2D, ImageBitmap, printing and capturing capabilities. 124 // WebGL texImage2D, ImageBitmap, printing and capturing capabilities.
125 void paint(blink::WebCanvas* canvas, 125 void paint(blink::WebCanvas* canvas,
126 const blink::WebRect& rect, 126 const blink::WebRect& rect,
127 SkPaint& paint) override; 127 CdlPaint& paint) override;
128 128
129 // True if the loaded media has a playable video/audio track. 129 // True if the loaded media has a playable video/audio track.
130 bool hasVideo() const override; 130 bool hasVideo() const override;
131 bool hasAudio() const override; 131 bool hasAudio() const override;
132 132
133 void enabledAudioTracksChanged( 133 void enabledAudioTracksChanged(
134 const blink::WebVector<blink::WebMediaPlayer::TrackId>& enabledTrackIds) 134 const blink::WebVector<blink::WebMediaPlayer::TrackId>& enabledTrackIds)
135 override; 135 override;
136 void selectedVideoTrackChanged( 136 void selectedVideoTrackChanged(
137 blink::WebMediaPlayer::TrackId* selectedTrackId) override; 137 blink::WebMediaPlayer::TrackId* selectedTrackId) override;
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 578
579 // Whether the player is currently in autoplay muted state. 579 // Whether the player is currently in autoplay muted state.
580 bool autoplay_muted_ = false; 580 bool autoplay_muted_ = false;
581 581
582 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 582 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
583 }; 583 };
584 584
585 } // namespace media 585 } // namespace media
586 586
587 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 587 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/sad_plugin.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698