Chromium Code Reviews| 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::StreamParameters::StreamParameters() | |
| 13 : profile(VIDEO_CODEC_PROFILE_UNKNOWN), is_encrypted(false) {} | |
|
xhwang
2015/12/02 06:48:18
OOC, where do we need this default ctor?
Tima Vaisburd
2015/12/02 18:02:15
I think it is required by auto generated gpu messa
| |
| 14 | |
| 15 VideoDecodeAccelerator::StreamParameters::StreamParameters(VideoCodecProfile p) | |
|
xhwang
2015/12/02 06:48:18
no meaningless abbreviations: https://google.githu
| |
| 16 : profile(p), is_encrypted(false) {} | |
| 17 | |
| 18 VideoDecodeAccelerator::StreamParameters::StreamParameters( | |
| 19 const VideoDecoderConfig& config) | |
| 20 : profile(config.profile()), is_encrypted(config.is_encrypted()) {} | |
| 21 | |
| 12 void VideoDecodeAccelerator::Client::NotifyCdmAttached(bool success) { | 22 void VideoDecodeAccelerator::Client::NotifyCdmAttached(bool success) { |
| 13 NOTREACHED() << "By default CDM is not supported."; | 23 NOTREACHED() << "By default CDM is not supported."; |
| 14 } | 24 } |
| 15 | 25 |
| 16 VideoDecodeAccelerator::~VideoDecodeAccelerator() {} | 26 VideoDecodeAccelerator::~VideoDecodeAccelerator() {} |
| 17 | 27 |
| 18 void VideoDecodeAccelerator::SetCdm(int cdm_id) { | 28 void VideoDecodeAccelerator::SetCdm(int cdm_id) { |
| 19 NOTREACHED() << "By default CDM is not supported."; | 29 NOTREACHED() << "By default CDM is not supported."; |
| 20 } | 30 } |
| 21 | 31 |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 39 } // namespace media | 49 } // namespace media |
| 40 | 50 |
| 41 namespace std { | 51 namespace std { |
| 42 | 52 |
| 43 void default_delete<media::VideoDecodeAccelerator>::operator()( | 53 void default_delete<media::VideoDecodeAccelerator>::operator()( |
| 44 media::VideoDecodeAccelerator* vda) const { | 54 media::VideoDecodeAccelerator* vda) const { |
| 45 vda->Destroy(); | 55 vda->Destroy(); |
| 46 } | 56 } |
| 47 | 57 |
| 48 } // namespace std | 58 } // namespace std |
| OLD | NEW |