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

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

Issue 2717943002: Fix cc/paint skia type mismatches (Closed)
Patch Set: Rebase 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
« no previous file with comments | « content/renderer/render_view_impl.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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 void setBufferingStrategy( 121 void setBufferingStrategy(
122 blink::WebMediaPlayer::BufferingStrategy buffering_strategy) override; 122 blink::WebMediaPlayer::BufferingStrategy buffering_strategy) override;
123 blink::WebTimeRanges buffered() const override; 123 blink::WebTimeRanges buffered() const override;
124 blink::WebTimeRanges seekable() const override; 124 blink::WebTimeRanges seekable() const override;
125 125
126 // paint() the current video frame into |canvas|. This is used to support 126 // paint() the current video frame into |canvas|. This is used to support
127 // various APIs and functionalities, including but not limited to: <canvas>, 127 // various APIs and functionalities, including but not limited to: <canvas>,
128 // WebGL texImage2D, ImageBitmap, printing and capturing capabilities. 128 // WebGL texImage2D, ImageBitmap, printing and capturing capabilities.
129 void paint(blink::WebCanvas* canvas, 129 void paint(blink::WebCanvas* canvas,
130 const blink::WebRect& rect, 130 const blink::WebRect& rect,
131 SkPaint& paint) override; 131 cc::PaintFlags& flags) override;
132 132
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;
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 // Whether the video requires a user gesture to resume after it was paused in 705 // Whether the video requires a user gesture to resume after it was paused in
706 // the background. Affects the value of ShouldPauseVideoWhenHidden(). 706 // the background. Affects the value of ShouldPauseVideoWhenHidden().
707 bool video_locked_when_paused_when_hidden_ = false; 707 bool video_locked_when_paused_when_hidden_ = false;
708 708
709 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 709 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
710 }; 710 };
711 711
712 } // namespace media 712 } // namespace media
713 713
714 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 714 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698