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

Side by Side Diff: media/blink/webmediaplayer_impl.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
« no previous file with comments | « media/base/mock_filters.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 virtual bool hasSingleSecurityOrigin() const; 121 virtual bool hasSingleSecurityOrigin() const;
122 virtual bool didPassCORSAccessCheck() const; 122 virtual bool didPassCORSAccessCheck() const;
123 123
124 virtual double mediaTimeForTimeValue(double timeValue) const; 124 virtual double mediaTimeForTimeValue(double timeValue) const;
125 125
126 virtual unsigned decodedFrameCount() const; 126 virtual unsigned decodedFrameCount() const;
127 virtual unsigned droppedFrameCount() const; 127 virtual unsigned droppedFrameCount() const;
128 virtual unsigned audioDecodedByteCount() const; 128 virtual unsigned audioDecodedByteCount() const;
129 virtual unsigned videoDecodedByteCount() const; 129 virtual unsigned videoDecodedByteCount() const;
130 130
131 virtual size_t getAudioBufferSize() const;
132 virtual void setAudioBufferSize(size_t size);
133 virtual size_t getVideoBufferSize() const;
134 virtual void setVideoBufferSize(size_t size);
135
131 // TODO(dshwang): remove |level|. crbug.com/443151 136 // TODO(dshwang): remove |level|. crbug.com/443151
132 virtual bool copyVideoTextureToPlatformTexture( 137 virtual bool copyVideoTextureToPlatformTexture(
133 blink::WebGraphicsContext3D* web_graphics_context, 138 blink::WebGraphicsContext3D* web_graphics_context,
134 unsigned int texture, 139 unsigned int texture,
135 unsigned int level, 140 unsigned int level,
136 unsigned int internal_format, 141 unsigned int internal_format,
137 unsigned int type, 142 unsigned int type,
138 bool premultiply_alpha, 143 bool premultiply_alpha,
139 bool flip_y); 144 bool flip_y);
140 virtual bool copyVideoTextureToPlatformTexture( 145 virtual bool copyVideoTextureToPlatformTexture(
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 EncryptedMediaPlayerSupport encrypted_media_support_; 335 EncryptedMediaPlayerSupport encrypted_media_support_;
331 336
332 scoped_ptr<RendererFactory> renderer_factory_; 337 scoped_ptr<RendererFactory> renderer_factory_;
333 338
334 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 339 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
335 }; 340 };
336 341
337 } // namespace media 342 } // namespace media
338 343
339 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 344 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « media/base/mock_filters.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698