| 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(); |
| 80 scoped_ptr<media::VideoDecodeAccelerator> CreateVaapiVDA(); | 81 scoped_ptr<media::VideoDecodeAccelerator> CreateVaapiVDA(); |
| 81 scoped_ptr<media::VideoDecodeAccelerator> CreateVTVDA(); | 82 scoped_ptr<media::VideoDecodeAccelerator> CreateVTVDA(); |
| 82 scoped_ptr<media::VideoDecodeAccelerator> CreateOzoneVDA(); | 83 scoped_ptr<media::VideoDecodeAccelerator> CreateOzoneVDA(); |
| 83 scoped_ptr<media::VideoDecodeAccelerator> CreateAndroidVDA(); | 84 scoped_ptr<media::VideoDecodeAccelerator> CreateAndroidVDA(); |
| 84 | 85 |
| 85 // We only allow self-delete, from OnWillDestroyStub(), after cleanup there. | 86 // We only allow self-delete, from OnWillDestroyStub(), after cleanup there. |
| 86 ~GpuVideoDecodeAccelerator() override; | 87 ~GpuVideoDecodeAccelerator() override; |
| 87 | 88 |
| 88 // Handlers for IPC messages. | 89 // Handlers for IPC messages. |
| 89 void OnDecode(base::SharedMemoryHandle handle, int32 id, uint32 size); | 90 void OnDecode(base::SharedMemoryHandle handle, int32 id, uint32 size); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 148 |
| 148 // A map from picture buffer ID to TextureRef that have not been cleared. | 149 // A map from picture buffer ID to TextureRef that have not been cleared. |
| 149 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_; | 150 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_; |
| 150 | 151 |
| 151 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 152 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
| 152 }; | 153 }; |
| 153 | 154 |
| 154 } // namespace content | 155 } // namespace content |
| 155 | 156 |
| 156 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 157 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |