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

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

Issue 1171263004: Allow setting memory limits on media::DemuxerStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merged CL that adds get/set buffer size on WMP Created 5 years, 6 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « content/renderer/media/android/media_source_delegate.cc ('k') | content/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698