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 20 matching lines...) Expand all Loading... |
31 // GPU process subclasses must override this. | 31 // GPU process subclasses must override this. |
32 LOG(FATAL) << "This should only get called in the GPU process"; | 32 LOG(FATAL) << "This should only get called in the GPU process"; |
33 return false; // not reached | 33 return false; // not reached |
34 } | 34 } |
35 | 35 |
36 GLenum VideoDecodeAccelerator::GetSurfaceInternalFormat() const { | 36 GLenum VideoDecodeAccelerator::GetSurfaceInternalFormat() const { |
37 return GL_RGBA; | 37 return GL_RGBA; |
38 } | 38 } |
39 | 39 |
40 VideoDecodeAccelerator::SupportedProfile::SupportedProfile() | 40 VideoDecodeAccelerator::SupportedProfile::SupportedProfile() |
41 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN) { | 41 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN) {} |
42 } | |
43 | 42 |
44 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() { | 43 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() {} |
45 } | 44 |
| 45 VideoDecodeAccelerator::Capabilities::Capabilities() : flags(NO_FLAGS) {} |
| 46 |
| 47 VideoDecodeAccelerator::Capabilities::~Capabilities() {} |
46 | 48 |
47 } // namespace media | 49 } // namespace media |
48 | 50 |
49 namespace std { | 51 namespace std { |
50 | 52 |
51 void default_delete<media::VideoDecodeAccelerator>::operator()( | 53 void default_delete<media::VideoDecodeAccelerator>::operator()( |
52 media::VideoDecodeAccelerator* vda) const { | 54 media::VideoDecodeAccelerator* vda) const { |
53 vda->Destroy(); | 55 vda->Destroy(); |
54 } | 56 } |
55 | 57 |
56 } // namespace std | 58 } // namespace std |
OLD | NEW |