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

Side by Side Diff: content/renderer/media/webmediaplayer_ms.cc

Issue 1185453004: Implemented setting memory limits through WebMediaPlayer interface Base URL: https://chromium.googlesource.com/chromium/src.git@set-mem-limits-on-demux-stream
Patch Set: int -> size_t 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 #include "content/renderer/media/webmediaplayer_ms.h" 5 #include "content/renderer/media/webmediaplayer_ms.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 NOTIMPLEMENTED(); 391 NOTIMPLEMENTED();
392 return 0; 392 return 0;
393 } 393 }
394 394
395 unsigned WebMediaPlayerMS::videoDecodedByteCount() const { 395 unsigned WebMediaPlayerMS::videoDecodedByteCount() const {
396 DCHECK(thread_checker_.CalledOnValidThread()); 396 DCHECK(thread_checker_.CalledOnValidThread());
397 NOTIMPLEMENTED(); 397 NOTIMPLEMENTED();
398 return 0; 398 return 0;
399 } 399 }
400 400
401 size_t WebMediaPlayerMS::getAudioBufferSize() const {
402 DCHECK(thread_checker_.CalledOnValidThread());
403 NOTIMPLEMENTED();
404 return 0;
405 }
406
407 void WebMediaPlayerMS::setAudioBufferSize(size_t size) {
408 DCHECK(thread_checker_.CalledOnValidThread());
409 NOTIMPLEMENTED();
410 }
411
412 size_t WebMediaPlayerMS::getVideoBufferSize() const {
413 DCHECK(thread_checker_.CalledOnValidThread());
414 NOTIMPLEMENTED();
415 return 0;
416 }
417
418 void WebMediaPlayerMS::setVideoBufferSize(size_t size) {
419 DCHECK(thread_checker_.CalledOnValidThread());
420 NOTIMPLEMENTED();
421 }
422
423
401 bool WebMediaPlayerMS::copyVideoTextureToPlatformTexture( 424 bool WebMediaPlayerMS::copyVideoTextureToPlatformTexture(
402 blink::WebGraphicsContext3D* web_graphics_context, 425 blink::WebGraphicsContext3D* web_graphics_context,
403 unsigned int texture, 426 unsigned int texture,
404 unsigned int level, 427 unsigned int level,
405 unsigned int internal_format, 428 unsigned int internal_format,
406 unsigned int type, 429 unsigned int type,
407 bool premultiply_alpha, 430 bool premultiply_alpha,
408 bool flip_y) { 431 bool flip_y) {
409 return copyVideoTextureToPlatformTexture(web_graphics_context, texture, 432 return copyVideoTextureToPlatformTexture(web_graphics_context, texture,
410 internal_format, type, 433 internal_format, type,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 GetClient()->readyStateChanged(); 575 GetClient()->readyStateChanged();
553 } 576 }
554 577
555 blink::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() { 578 blink::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() {
556 DCHECK(thread_checker_.CalledOnValidThread()); 579 DCHECK(thread_checker_.CalledOnValidThread());
557 DCHECK(client_); 580 DCHECK(client_);
558 return client_; 581 return client_;
559 } 582 }
560 583
561 } // namespace content 584 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698