OLD | NEW |
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; |
| 13 VideoDecodeAccelerator::Config::Config(const Config& config) = default; |
| 14 |
12 VideoDecodeAccelerator::Config::Config(VideoCodecProfile video_codec_profile) | 15 VideoDecodeAccelerator::Config::Config(VideoCodecProfile video_codec_profile) |
13 : profile(video_codec_profile) {} | 16 : profile(video_codec_profile) {} |
14 | 17 |
| 18 VideoDecodeAccelerator::Config::~Config() = default; |
| 19 |
15 std::string VideoDecodeAccelerator::Config::AsHumanReadableString() const { | 20 std::string VideoDecodeAccelerator::Config::AsHumanReadableString() const { |
16 std::ostringstream s; | 21 std::ostringstream s; |
17 s << "profile: " << GetProfileName(profile) << " encrypted? " | 22 s << "profile: " << GetProfileName(profile) << " encrypted? " |
18 << (is_encrypted ? "true" : "false"); | 23 << (is_encrypted ? "true" : "false"); |
19 return s.str(); | 24 return s.str(); |
20 } | 25 } |
21 | 26 |
22 void VideoDecodeAccelerator::Client::NotifyInitializationComplete( | 27 void VideoDecodeAccelerator::Client::NotifyInitializationComplete( |
23 bool success) { | 28 bool success) { |
24 NOTREACHED() << "By default deferred initialization is not supported."; | 29 NOTREACHED() << "By default deferred initialization is not supported."; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } // namespace media | 77 } // namespace media |
73 | 78 |
74 namespace std { | 79 namespace std { |
75 | 80 |
76 void default_delete<media::VideoDecodeAccelerator>::operator()( | 81 void default_delete<media::VideoDecodeAccelerator>::operator()( |
77 media::VideoDecodeAccelerator* vda) const { | 82 media::VideoDecodeAccelerator* vda) const { |
78 vda->Destroy(); | 83 vda->Destroy(); |
79 } | 84 } |
80 | 85 |
81 } // namespace std | 86 } // namespace std |
OLD | NEW |