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 { |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 LOG(FATAL) << "This may only be called in the same process as VDA impl."; | 38 LOG(FATAL) << "This may only be called in the same process as VDA impl."; |
| 39 return false; | 39 return false; |
| 40 } | 40 } |
| 41 | 41 |
| 42 void VideoDecodeAccelerator::ImportBufferForPicture( | 42 void VideoDecodeAccelerator::ImportBufferForPicture( |
| 43 int32_t picture_buffer_id, | 43 int32_t picture_buffer_id, |
| 44 const gfx::GpuMemoryBufferHandle& gpu_memory_buffer_handle) { | 44 const gfx::GpuMemoryBufferHandle& gpu_memory_buffer_handle) { |
| 45 NOTREACHED() << "Buffer import not supported."; | 45 NOTREACHED() << "Buffer import not supported."; |
| 46 } | 46 } |
| 47 | 47 |
| 48 void VideoDecodeAccelerator::SetSurface( | 48 void VideoDecodeAccelerator::SetOverlayInfo(const OverlayInfo& overlay_info) { |
| 49 int32_t surface_id, | |
| 50 const base::Optional<base::UnguessableToken>& routing_token) { | |
| 51 NOTREACHED() << "Surfaces are not supported."; | 49 NOTREACHED() << "Surfaces are not supported."; |
|
watk
2017/05/25 18:09:36
Overlays
liberato (no reviews please)
2017/05/25 21:26:56
Done.
| |
| 52 } | 50 } |
| 53 | 51 |
| 54 GLenum VideoDecodeAccelerator::GetSurfaceInternalFormat() const { | 52 GLenum VideoDecodeAccelerator::GetSurfaceInternalFormat() const { |
| 55 return GL_RGBA; | 53 return GL_RGBA; |
| 56 } | 54 } |
| 57 | 55 |
| 58 VideoDecodeAccelerator::SupportedProfile::SupportedProfile() | 56 VideoDecodeAccelerator::SupportedProfile::SupportedProfile() |
| 59 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN), encrypted_only(false) {} | 57 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN), encrypted_only(false) {} |
| 60 | 58 |
| 61 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() {} | 59 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() {} |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 83 } // namespace media | 81 } // namespace media |
| 84 | 82 |
| 85 namespace std { | 83 namespace std { |
| 86 | 84 |
| 87 void default_delete<media::VideoDecodeAccelerator>::operator()( | 85 void default_delete<media::VideoDecodeAccelerator>::operator()( |
| 88 media::VideoDecodeAccelerator* vda) const { | 86 media::VideoDecodeAccelerator* vda) const { |
| 89 vda->Destroy(); | 87 vda->Destroy(); |
| 90 } | 88 } |
| 91 | 89 |
| 92 } // namespace std | 90 } // namespace std |
| OLD | NEW |