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(int32_t surface_id) { |
| 49 NOTREACHED() << "Surfaces are not supported."; |
| 50 } |
| 51 |
48 GLenum VideoDecodeAccelerator::GetSurfaceInternalFormat() const { | 52 GLenum VideoDecodeAccelerator::GetSurfaceInternalFormat() const { |
49 return GL_RGBA; | 53 return GL_RGBA; |
50 } | 54 } |
51 | 55 |
52 VideoDecodeAccelerator::SupportedProfile::SupportedProfile() | 56 VideoDecodeAccelerator::SupportedProfile::SupportedProfile() |
53 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN), encrypted_only(false) {} | 57 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN), encrypted_only(false) {} |
54 | 58 |
55 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() {} | 59 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() {} |
56 | 60 |
57 VideoDecodeAccelerator::Capabilities::Capabilities() : flags(NO_FLAGS) {} | 61 VideoDecodeAccelerator::Capabilities::Capabilities() : flags(NO_FLAGS) {} |
(...skipping 19 matching lines...) Expand all Loading... |
77 } // namespace media | 81 } // namespace media |
78 | 82 |
79 namespace std { | 83 namespace std { |
80 | 84 |
81 void default_delete<media::VideoDecodeAccelerator>::operator()( | 85 void default_delete<media::VideoDecodeAccelerator>::operator()( |
82 media::VideoDecodeAccelerator* vda) const { | 86 media::VideoDecodeAccelerator* vda) const { |
83 vda->Destroy(); | 87 vda->Destroy(); |
84 } | 88 } |
85 | 89 |
86 } // namespace std | 90 } // namespace std |
OLD | NEW |