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

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

Issue 2058113002: Add 'cbcs' encryption scheme support in Android media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
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() = default; 12 VideoDecodeAccelerator::Config::Config() = default;
13 VideoDecodeAccelerator::Config::Config(const Config& config) = default; 13 VideoDecodeAccelerator::Config::Config(const Config& config) = default;
14 14
15 VideoDecodeAccelerator::Config::Config(VideoCodecProfile video_codec_profile) 15 VideoDecodeAccelerator::Config::Config(VideoCodecProfile video_codec_profile)
16 : profile(video_codec_profile) {} 16 : profile(video_codec_profile) {}
17 17
18 VideoDecodeAccelerator::Config::~Config() = default; 18 VideoDecodeAccelerator::Config::~Config() = default;
19 19
20 std::string VideoDecodeAccelerator::Config::AsHumanReadableString() const { 20 std::string VideoDecodeAccelerator::Config::AsHumanReadableString() const {
21 std::ostringstream s; 21 std::ostringstream s;
22 s << "profile: " << GetProfileName(profile) << " encrypted? " 22 s << "profile: " << GetProfileName(profile) << " encrypted? "
23 << (is_encrypted ? "true" : "false"); 23 << (is_encrypted() ? "true" : "false");
24 return s.str(); 24 return s.str();
25 } 25 }
26 26
27 void VideoDecodeAccelerator::Client::NotifyInitializationComplete( 27 void VideoDecodeAccelerator::Client::NotifyInitializationComplete(
28 bool success) { 28 bool success) {
29 NOTREACHED() << "By default deferred initialization is not supported."; 29 NOTREACHED() << "By default deferred initialization is not supported.";
30 } 30 }
31 31
32 VideoDecodeAccelerator::~VideoDecodeAccelerator() {} 32 VideoDecodeAccelerator::~VideoDecodeAccelerator() {}
33 33
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } // namespace media 81 } // namespace media
82 82
83 namespace std { 83 namespace std {
84 84
85 void default_delete<media::VideoDecodeAccelerator>::operator()( 85 void default_delete<media::VideoDecodeAccelerator>::operator()(
86 media::VideoDecodeAccelerator* vda) const { 86 media::VideoDecodeAccelerator* vda) const {
87 vda->Destroy(); 87 vda->Destroy();
88 } 88 }
89 89
90 } // namespace std 90 } // namespace std
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698