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

Side by Side Diff: content/renderer/media/webmediaplayer_ms.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
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void setSinkId(const blink::WebString& sink_id, 97 void setSinkId(const blink::WebString& sink_id,
98 const blink::WebSecurityOrigin& security_origin, 98 const blink::WebSecurityOrigin& security_origin,
99 blink::WebSetSinkIdCallbacks* web_callback) override; 99 blink::WebSetSinkIdCallbacks* web_callback) override;
100 void setPreload(blink::WebMediaPlayer::Preload preload) override; 100 void setPreload(blink::WebMediaPlayer::Preload preload) override;
101 blink::WebTimeRanges buffered() const override; 101 blink::WebTimeRanges buffered() const override;
102 blink::WebTimeRanges seekable() const override; 102 blink::WebTimeRanges seekable() const override;
103 103
104 // Methods for painting. 104 // Methods for painting.
105 void paint(blink::WebCanvas* canvas, 105 void paint(blink::WebCanvas* canvas,
106 const blink::WebRect& rect, 106 const blink::WebRect& rect,
107 SkPaint& paint) override; 107 CdlPaint& paint) override;
108 media::SkCanvasVideoRenderer* GetSkCanvasVideoRenderer(); 108 media::SkCanvasVideoRenderer* GetSkCanvasVideoRenderer();
109 void ResetCanvasCache(); 109 void ResetCanvasCache();
110 110
111 // Methods to trigger resize event. 111 // Methods to trigger resize event.
112 void TriggerResize(); 112 void TriggerResize();
113 113
114 // True if the loaded media has a playable video/audio track. 114 // True if the loaded media has a playable video/audio track.
115 bool hasVideo() const override; 115 bool hasVideo() const override;
116 bool hasAudio() const override; 116 bool hasAudio() const override;
117 117
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // True if playback should be started upon the next call to OnShown(). Only 239 // True if playback should be started upon the next call to OnShown(). Only
240 // used on Android. 240 // used on Android.
241 bool should_play_upon_shown_; 241 bool should_play_upon_shown_;
242 242
243 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); 243 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS);
244 }; 244 };
245 245
246 } // namespace content 246 } // namespace content
247 247
248 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 248 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/video_track_recorder.cc ('k') | content/renderer/media/webmediaplayer_ms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698