OLD | NEW |
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 virtual bool didPassCORSAccessCheck() const; | 174 virtual bool didPassCORSAccessCheck() const; |
175 | 175 |
176 virtual double mediaTimeForTimeValue(double timeValue) const; | 176 virtual double mediaTimeForTimeValue(double timeValue) const; |
177 | 177 |
178 // Provide statistics. | 178 // Provide statistics. |
179 virtual unsigned decodedFrameCount() const; | 179 virtual unsigned decodedFrameCount() const; |
180 virtual unsigned droppedFrameCount() const; | 180 virtual unsigned droppedFrameCount() const; |
181 virtual unsigned audioDecodedByteCount() const; | 181 virtual unsigned audioDecodedByteCount() const; |
182 virtual unsigned videoDecodedByteCount() const; | 182 virtual unsigned videoDecodedByteCount() const; |
183 | 183 |
| 184 virtual size_t getAudioBufferSize() const; |
| 185 virtual void setAudioBufferSize(size_t size); |
| 186 virtual size_t getVideoBufferSize() const; |
| 187 virtual void setVideoBufferSize(size_t size); |
| 188 |
184 // cc::VideoFrameProvider implementation. These methods are running on the | 189 // cc::VideoFrameProvider implementation. These methods are running on the |
185 // compositor thread. | 190 // compositor thread. |
186 void SetVideoFrameProviderClient( | 191 void SetVideoFrameProviderClient( |
187 cc::VideoFrameProvider::Client* client) override; | 192 cc::VideoFrameProvider::Client* client) override; |
188 bool UpdateCurrentFrame(base::TimeTicks deadline_min, | 193 bool UpdateCurrentFrame(base::TimeTicks deadline_min, |
189 base::TimeTicks deadline_max) override; | 194 base::TimeTicks deadline_max) override; |
190 bool HasCurrentFrame() override; | 195 bool HasCurrentFrame() override; |
191 scoped_refptr<media::VideoFrame> GetCurrentFrame() override; | 196 scoped_refptr<media::VideoFrame> GetCurrentFrame() override; |
192 void PutCurrentFrame() override; | 197 void PutCurrentFrame() override; |
193 | 198 |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 | 527 |
523 // NOTE: Weak pointers must be invalidated before all other member variables. | 528 // NOTE: Weak pointers must be invalidated before all other member variables. |
524 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 529 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
525 | 530 |
526 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 531 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
527 }; | 532 }; |
528 | 533 |
529 } // namespace content | 534 } // namespace content |
530 | 535 |
531 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 536 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
OLD | NEW |