| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 typedef scoped_ptr<media::VideoDecodeAccelerator>( | 70 typedef scoped_ptr<media::VideoDecodeAccelerator>( |
| 71 GpuVideoDecodeAccelerator::*CreateVDAFp)(); | 71 GpuVideoDecodeAccelerator::*CreateVDAFp)(); |
| 72 | 72 |
| 73 class MessageFilter; | 73 class MessageFilter; |
| 74 | 74 |
| 75 // Return a set of VDA Create function pointers applicable to the current | 75 // Return a set of VDA Create function pointers applicable to the current |
| 76 // platform. | 76 // platform. |
| 77 std::vector<CreateVDAFp> CreateVDAFps(); | 77 std::vector<CreateVDAFp> CreateVDAFps(); |
| 78 scoped_ptr<media::VideoDecodeAccelerator> CreateDXVAVDA(); | 78 scoped_ptr<media::VideoDecodeAccelerator> CreateDXVAVDA(); |
| 79 scoped_ptr<media::VideoDecodeAccelerator> CreateV4L2VDA(); | 79 scoped_ptr<media::VideoDecodeAccelerator> CreateV4L2VDA(); |
| 80 scoped_ptr<media::VideoDecodeAccelerator> CreateV4L2SliceVDA(); | |
| 81 scoped_ptr<media::VideoDecodeAccelerator> CreateVaapiVDA(); | 80 scoped_ptr<media::VideoDecodeAccelerator> CreateVaapiVDA(); |
| 82 scoped_ptr<media::VideoDecodeAccelerator> CreateVTVDA(); | 81 scoped_ptr<media::VideoDecodeAccelerator> CreateVTVDA(); |
| 83 scoped_ptr<media::VideoDecodeAccelerator> CreateOzoneVDA(); | 82 scoped_ptr<media::VideoDecodeAccelerator> CreateOzoneVDA(); |
| 84 scoped_ptr<media::VideoDecodeAccelerator> CreateAndroidVDA(); | 83 scoped_ptr<media::VideoDecodeAccelerator> CreateAndroidVDA(); |
| 85 | 84 |
| 86 // We only allow self-delete, from OnWillDestroyStub(), after cleanup there. | 85 // We only allow self-delete, from OnWillDestroyStub(), after cleanup there. |
| 87 ~GpuVideoDecodeAccelerator() override; | 86 ~GpuVideoDecodeAccelerator() override; |
| 88 | 87 |
| 89 // Handlers for IPC messages. | 88 // Handlers for IPC messages. |
| 90 void OnDecode(base::SharedMemoryHandle handle, int32 id, uint32 size); | 89 void OnDecode(base::SharedMemoryHandle handle, int32 id, uint32 size); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 147 |
| 149 // A map from picture buffer ID to TextureRef that have not been cleared. | 148 // A map from picture buffer ID to TextureRef that have not been cleared. |
| 150 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_; | 149 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_; |
| 151 | 150 |
| 152 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 151 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
| 153 }; | 152 }; |
| 154 | 153 |
| 155 } // namespace content | 154 } // namespace content |
| 156 | 155 |
| 157 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 156 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |