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

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

Issue 1485043002: Passed is_encrypted parameter to the VDA initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years 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/video/video_decode_accelerator.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 VideoDecodeAccelerator::Config::Config(VideoCodecProfile video_codec_profile)
13 : profile(video_codec_profile) {}
14
15 VideoDecodeAccelerator::Config::Config(
16 const VideoDecoderConfig& video_decoder_config)
17 : profile(video_decoder_config.profile()),
18 is_encrypted(video_decoder_config.is_encrypted()) {}
19
12 void VideoDecodeAccelerator::Client::NotifyCdmAttached(bool success) { 20 void VideoDecodeAccelerator::Client::NotifyCdmAttached(bool success) {
13 NOTREACHED() << "By default CDM is not supported."; 21 NOTREACHED() << "By default CDM is not supported.";
14 } 22 }
15 23
16 VideoDecodeAccelerator::~VideoDecodeAccelerator() {} 24 VideoDecodeAccelerator::~VideoDecodeAccelerator() {}
17 25
18 void VideoDecodeAccelerator::SetCdm(int cdm_id) { 26 void VideoDecodeAccelerator::SetCdm(int cdm_id) {
19 NOTREACHED() << "By default CDM is not supported."; 27 NOTREACHED() << "By default CDM is not supported.";
20 } 28 }
21 29
(...skipping 17 matching lines...) Expand all
39 } // namespace media 47 } // namespace media
40 48
41 namespace std { 49 namespace std {
42 50
43 void default_delete<media::VideoDecodeAccelerator>::operator()( 51 void default_delete<media::VideoDecodeAccelerator>::operator()(
44 media::VideoDecodeAccelerator* vda) const { 52 media::VideoDecodeAccelerator* vda) const {
45 vda->Destroy(); 53 vda->Destroy();
46 } 54 }
47 55
48 } // namespace std 56 } // namespace std
OLDNEW
« no previous file with comments | « media/video/video_decode_accelerator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698