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

Side by Side Diff: media/video/video_decode_accelerator.cc

Issue 1438063002: media: Support SetCdm() on VideoDecodeAccelerator interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "media/video/video_decode_accelerator.h" 5 #include "media/video/video_decode_accelerator.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace media { 10 namespace media {
11 11
12 void VideoDecodeAccelerator::Client::NotifyCdmSet(bool success) {
13 NOTREACHED() << "By default CDM is not supported.";
14 }
15
12 VideoDecodeAccelerator::~VideoDecodeAccelerator() {} 16 VideoDecodeAccelerator::~VideoDecodeAccelerator() {}
13 17
18 void VideoDecodeAccelerator::SetCdm(int cdm_id) {
19 NOTREACHED() << "By default CDM is not supported.";
20 }
21
14 bool VideoDecodeAccelerator::CanDecodeOnIOThread() { 22 bool VideoDecodeAccelerator::CanDecodeOnIOThread() {
15 // GPU process subclasses must override this. 23 // GPU process subclasses must override this.
16 LOG(FATAL) << "This should only get called in the GPU process"; 24 LOG(FATAL) << "This should only get called in the GPU process";
17 return false; // not reached 25 return false; // not reached
18 } 26 }
19 27
20 GLenum VideoDecodeAccelerator::GetSurfaceInternalFormat() const { 28 GLenum VideoDecodeAccelerator::GetSurfaceInternalFormat() const {
21 return GL_RGBA; 29 return GL_RGBA;
22 } 30 }
23 31
(...skipping 10 matching lines...) Expand all
34 42
35 void DefaultDeleter<media::VideoDecodeAccelerator>::operator()( 43 void DefaultDeleter<media::VideoDecodeAccelerator>::operator()(
36 void* video_decode_accelerator) const { 44 void* video_decode_accelerator) const {
37 static_cast<media::VideoDecodeAccelerator*>(video_decode_accelerator)-> 45 static_cast<media::VideoDecodeAccelerator*>(video_decode_accelerator)->
38 Destroy(); 46 Destroy();
39 } 47 }
40 48
41 } // namespace base 49 } // namespace base
42 50
43 51
OLDNEW
« media/video/video_decode_accelerator.h ('K') | « media/video/video_decode_accelerator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698