| 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 26 matching lines...) Expand all Loading... |
| 37 void VideoDecodeAccelerator::ImportBufferForPicture( | 37 void VideoDecodeAccelerator::ImportBufferForPicture( |
| 38 int32_t picture_buffer_id, | 38 int32_t picture_buffer_id, |
| 39 const std::vector<gfx::GpuMemoryBufferHandle>& gpu_memory_buffer_handles) { | 39 const std::vector<gfx::GpuMemoryBufferHandle>& gpu_memory_buffer_handles) { |
| 40 NOTREACHED() << "Buffer import not supported."; | 40 NOTREACHED() << "Buffer import not supported."; |
| 41 } | 41 } |
| 42 | 42 |
| 43 GLenum VideoDecodeAccelerator::GetSurfaceInternalFormat() const { | 43 GLenum VideoDecodeAccelerator::GetSurfaceInternalFormat() const { |
| 44 return GL_RGBA; | 44 return GL_RGBA; |
| 45 } | 45 } |
| 46 | 46 |
| 47 VideoPixelFormat VideoDecodeAccelerator::GetOutputFormat() const { | |
| 48 return PIXEL_FORMAT_UNKNOWN; | |
| 49 } | |
| 50 | |
| 51 VideoDecodeAccelerator::SupportedProfile::SupportedProfile() | 47 VideoDecodeAccelerator::SupportedProfile::SupportedProfile() |
| 52 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN), encrypted_only(false) {} | 48 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN), encrypted_only(false) {} |
| 53 | 49 |
| 54 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() {} | 50 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() {} |
| 55 | 51 |
| 56 VideoDecodeAccelerator::Capabilities::Capabilities() : flags(NO_FLAGS) {} | 52 VideoDecodeAccelerator::Capabilities::Capabilities() : flags(NO_FLAGS) {} |
| 57 | 53 |
| 58 VideoDecodeAccelerator::Capabilities::Capabilities(const Capabilities& other) = | 54 VideoDecodeAccelerator::Capabilities::Capabilities(const Capabilities& other) = |
| 59 default; | 55 default; |
| 60 | 56 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 76 } // namespace media | 72 } // namespace media |
| 77 | 73 |
| 78 namespace std { | 74 namespace std { |
| 79 | 75 |
| 80 void default_delete<media::VideoDecodeAccelerator>::operator()( | 76 void default_delete<media::VideoDecodeAccelerator>::operator()( |
| 81 media::VideoDecodeAccelerator* vda) const { | 77 media::VideoDecodeAccelerator* vda) const { |
| 82 vda->Destroy(); | 78 vda->Destroy(); |
| 83 } | 79 } |
| 84 | 80 |
| 85 } // namespace std | 81 } // namespace std |
| OLD | NEW |