| 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::InitParams::InitParams(VideoCodecProfile p, |
| 13 bool is_encr) |
| 14 : profile(p), is_encrypted(is_encr) {} |
| 15 |
| 12 void VideoDecodeAccelerator::Client::NotifyCdmAttached(bool success) { | 16 void VideoDecodeAccelerator::Client::NotifyCdmAttached(bool success) { |
| 13 NOTREACHED() << "By default CDM is not supported."; | 17 NOTREACHED() << "By default CDM is not supported."; |
| 14 } | 18 } |
| 15 | 19 |
| 16 VideoDecodeAccelerator::~VideoDecodeAccelerator() {} | 20 VideoDecodeAccelerator::~VideoDecodeAccelerator() {} |
| 17 | 21 |
| 18 void VideoDecodeAccelerator::SetCdm(int cdm_id) { | 22 void VideoDecodeAccelerator::SetCdm(int cdm_id) { |
| 19 NOTREACHED() << "By default CDM is not supported."; | 23 NOTREACHED() << "By default CDM is not supported."; |
| 20 } | 24 } |
| 21 | 25 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 39 } // namespace media | 43 } // namespace media |
| 40 | 44 |
| 41 namespace std { | 45 namespace std { |
| 42 | 46 |
| 43 void default_delete<media::VideoDecodeAccelerator>::operator()( | 47 void default_delete<media::VideoDecodeAccelerator>::operator()( |
| 44 media::VideoDecodeAccelerator* vda) const { | 48 media::VideoDecodeAccelerator* vda) const { |
| 45 vda->Destroy(); | 49 vda->Destroy(); |
| 46 } | 50 } |
| 47 | 51 |
| 48 } // namespace std | 52 } // namespace std |
| OLD | NEW |