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

Side by Side Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 1053113002: Prime the landing pad for the new video rendering pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cc_unittests Created 5 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
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_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // Provide statistics. 177 // Provide statistics.
178 virtual unsigned decodedFrameCount() const; 178 virtual unsigned decodedFrameCount() const;
179 virtual unsigned droppedFrameCount() const; 179 virtual unsigned droppedFrameCount() const;
180 virtual unsigned audioDecodedByteCount() const; 180 virtual unsigned audioDecodedByteCount() const;
181 virtual unsigned videoDecodedByteCount() const; 181 virtual unsigned videoDecodedByteCount() const;
182 182
183 // cc::VideoFrameProvider implementation. These methods are running on the 183 // cc::VideoFrameProvider implementation. These methods are running on the
184 // compositor thread. 184 // compositor thread.
185 void SetVideoFrameProviderClient( 185 void SetVideoFrameProviderClient(
186 cc::VideoFrameProvider::Client* client) override; 186 cc::VideoFrameProvider::Client* client) override;
187 bool Render(base::TimeTicks deadline_min,
188 base::TimeTicks deadline_max) override;
187 scoped_refptr<media::VideoFrame> GetCurrentFrame() override; 189 scoped_refptr<media::VideoFrame> GetCurrentFrame() override;
188 void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame) override; 190 void PutCurrentFrame() override;
191 void SetVisible(bool visible) override;
189 192
190 // Media player callback handlers. 193 // Media player callback handlers.
191 void OnMediaMetadataChanged(const base::TimeDelta& duration, int width, 194 void OnMediaMetadataChanged(const base::TimeDelta& duration, int width,
192 int height, bool success); 195 int height, bool success);
193 void OnPlaybackComplete(); 196 void OnPlaybackComplete();
194 void OnBufferingUpdate(int percentage); 197 void OnBufferingUpdate(int percentage);
195 void OnSeekRequest(const base::TimeDelta& time_to_seek); 198 void OnSeekRequest(const base::TimeDelta& time_to_seek);
196 void OnSeekComplete(const base::TimeDelta& current_time); 199 void OnSeekComplete(const base::TimeDelta& current_time);
197 void OnMediaError(int error_type); 200 void OnMediaError(int error_type);
198 void OnVideoSizeChanged(int width, int height); 201 void OnVideoSizeChanged(int width, int height);
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 520
518 // NOTE: Weak pointers must be invalidated before all other member variables. 521 // NOTE: Weak pointers must be invalidated before all other member variables.
519 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; 522 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_;
520 523
521 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 524 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
522 }; 525 };
523 526
524 } // namespace content 527 } // namespace content
525 528
526 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 529 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698