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

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

Issue 10837118: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. 5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player.
6 // It contains Pipeline which is the actual media player pipeline, it glues 6 // It contains Pipeline which is the actual media player pipeline, it glues
7 // the media player pipeline, data source, audio renderer and renderer. 7 // the media player pipeline, data source, audio renderer and renderer.
8 // Pipeline would creates multiple threads and access some public methods 8 // Pipeline would creates multiple threads and access some public methods
9 // of this class, so we need to be extra careful about concurrent access of 9 // of this class, so we need to be extra careful about concurrent access of
10 // methods and members. 10 // methods and members.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 virtual void setVolume(float volume); 136 virtual void setVolume(float volume);
137 virtual void setVisible(bool visible); 137 virtual void setVisible(bool visible);
138 virtual void setPreload(WebKit::WebMediaPlayer::Preload preload); 138 virtual void setPreload(WebKit::WebMediaPlayer::Preload preload);
139 virtual bool totalBytesKnown(); 139 virtual bool totalBytesKnown();
140 virtual const WebKit::WebTimeRanges& buffered(); 140 virtual const WebKit::WebTimeRanges& buffered();
141 virtual float maxTimeSeekable() const; 141 virtual float maxTimeSeekable() const;
142 142
143 // Methods for painting. 143 // Methods for painting.
144 virtual void setSize(const WebKit::WebSize& size); 144 virtual void setSize(const WebKit::WebSize& size);
145 145
146 // This variant (without alpha) is just present during staging of this API
147 // change. Later we will again only have one virtual paint().
148 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect);
149 virtual void paint(WebKit::WebCanvas* canvas, 146 virtual void paint(WebKit::WebCanvas* canvas,
150 const WebKit::WebRect& rect, 147 const WebKit::WebRect& rect,
151 uint8_t alpha); 148 uint8_t alpha);
152 149
153 // True if the loaded media has a playable video/audio track. 150 // True if the loaded media has a playable video/audio track.
154 virtual bool hasVideo() const; 151 virtual bool hasVideo() const;
155 virtual bool hasAudio() const; 152 virtual bool hasAudio() const;
156 153
157 // Dimensions of the video. 154 // Dimensions of the video.
158 virtual WebKit::WebSize naturalSize() const; 155 virtual WebKit::WebSize naturalSize() const;
(...skipping 25 matching lines...) Expand all
184 virtual unsigned decodedFrameCount() const; 181 virtual unsigned decodedFrameCount() const;
185 virtual unsigned droppedFrameCount() const; 182 virtual unsigned droppedFrameCount() const;
186 virtual unsigned audioDecodedByteCount() const; 183 virtual unsigned audioDecodedByteCount() const;
187 virtual unsigned videoDecodedByteCount() const; 184 virtual unsigned videoDecodedByteCount() const;
188 185
189 virtual WebKit::WebVideoFrame* getCurrentFrame(); 186 virtual WebKit::WebVideoFrame* getCurrentFrame();
190 virtual void putCurrentFrame(WebKit::WebVideoFrame* web_video_frame); 187 virtual void putCurrentFrame(WebKit::WebVideoFrame* web_video_frame);
191 188
192 virtual WebKit::WebAudioSourceProvider* audioSourceProvider(); 189 virtual WebKit::WebAudioSourceProvider* audioSourceProvider();
193 190
194 // TODO(acolwell): Remove once new sourceAddId() signature is checked into
195 // WebKit.
196 virtual AddIdStatus sourceAddId(const WebKit::WebString& id,
197 const WebKit::WebString& type);
198 virtual AddIdStatus sourceAddId( 191 virtual AddIdStatus sourceAddId(
199 const WebKit::WebString& id, 192 const WebKit::WebString& id,
200 const WebKit::WebString& type, 193 const WebKit::WebString& type,
201 const WebKit::WebVector<WebKit::WebString>& codecs); 194 const WebKit::WebVector<WebKit::WebString>& codecs);
202 virtual bool sourceRemoveId(const WebKit::WebString& id); 195 virtual bool sourceRemoveId(const WebKit::WebString& id);
203 virtual WebKit::WebTimeRanges sourceBuffered(const WebKit::WebString& id); 196 virtual WebKit::WebTimeRanges sourceBuffered(const WebKit::WebString& id);
204 // TODO(acolwell): Remove non-id version when http://webk.it/83788 fix lands.
205 virtual bool sourceAppend(const unsigned char* data, unsigned length);
206 virtual bool sourceAppend(const WebKit::WebString& id, 197 virtual bool sourceAppend(const WebKit::WebString& id,
207 const unsigned char* data, 198 const unsigned char* data,
208 unsigned length); 199 unsigned length);
209 virtual bool sourceAbort(const WebKit::WebString& id); 200 virtual bool sourceAbort(const WebKit::WebString& id);
210 virtual void sourceEndOfStream(EndOfStreamStatus status); 201 virtual void sourceEndOfStream(EndOfStreamStatus status);
211 virtual bool sourceTimestampOffset(
212 const WebKit::WebString& id, double offset);
213 202
214 virtual MediaKeyException generateKeyRequest( 203 virtual MediaKeyException generateKeyRequest(
215 const WebKit::WebString& key_system, 204 const WebKit::WebString& key_system,
216 const unsigned char* init_data, 205 const unsigned char* init_data,
217 unsigned init_data_length); 206 unsigned init_data_length);
218 207
219 virtual MediaKeyException addKey(const WebKit::WebString& key_system, 208 virtual MediaKeyException addKey(const WebKit::WebString& key_system,
220 const unsigned char* key, 209 const unsigned char* key,
221 unsigned key_length, 210 unsigned key_length,
222 const unsigned char* init_data, 211 const unsigned char* init_data,
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 345
357 // The decryptor that manages decryption keys and decrypts encrypted frames. 346 // The decryptor that manages decryption keys and decrypts encrypted frames.
358 ProxyDecryptor decryptor_; 347 ProxyDecryptor decryptor_;
359 348
360 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 349 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
361 }; 350 };
362 351
363 } // namespace webkit_media 352 } // namespace webkit_media
364 353
365 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 354 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698