| 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; | 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 } // namespace media | 77 } // namespace media |
| 78 | 78 |
| 79 namespace std { | 79 namespace std { |
| 80 | 80 |
| 81 void default_delete<media::VideoDecodeAccelerator>::operator()( | 81 void default_delete<media::VideoDecodeAccelerator>::operator()( |
| 82 media::VideoDecodeAccelerator* vda) const { | 82 media::VideoDecodeAccelerator* vda) const { |
| 83 vda->Destroy(); | 83 vda->Destroy(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 } // namespace std | 86 } // namespace std |
| OLD | NEW |