OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 5 #ifndef MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
6 #define MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 6 #define MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 virtual VideoPixelFormat VideoFrameOutputFormat() = 0; | 90 virtual VideoPixelFormat VideoFrameOutputFormat() = 0; |
91 | 91 |
92 virtual scoped_ptr<ScopedGLContextLock> GetGLContextLock() = 0; | 92 virtual scoped_ptr<ScopedGLContextLock> GetGLContextLock() = 0; |
93 | 93 |
94 // Allocate & return a shared memory segment. | 94 // Allocate & return a shared memory segment. |
95 virtual scoped_ptr<base::SharedMemory> CreateSharedMemory(size_t size) = 0; | 95 virtual scoped_ptr<base::SharedMemory> CreateSharedMemory(size_t size) = 0; |
96 | 96 |
97 // Returns the task runner the video accelerator runs on. | 97 // Returns the task runner the video accelerator runs on. |
98 virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() = 0; | 98 virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() = 0; |
99 | 99 |
| 100 // Return the capabilities of video decode accelerator. |
| 101 virtual VideoDecodeAccelerator::Capabilities |
| 102 GetVideoDecodeAcceleratorCapabilities() = 0; |
| 103 |
100 // Returns the supported codec profiles of video decode accelerator. | 104 // Returns the supported codec profiles of video decode accelerator. |
101 virtual VideoDecodeAccelerator::SupportedProfiles | 105 virtual VideoDecodeAccelerator::SupportedProfiles |
102 GetVideoDecodeAcceleratorSupportedProfiles() = 0; | 106 GetVideoDecodeAcceleratorSupportedProfiles() = 0; |
103 | 107 |
104 // Returns the supported codec profiles of video encode accelerator. | 108 // Returns the supported codec profiles of video encode accelerator. |
105 virtual VideoEncodeAccelerator::SupportedProfiles | 109 virtual VideoEncodeAccelerator::SupportedProfiles |
106 GetVideoEncodeAcceleratorSupportedProfiles() = 0; | 110 GetVideoEncodeAcceleratorSupportedProfiles() = 0; |
107 | 111 |
108 protected: | 112 protected: |
109 friend class base::RefCounted<GpuVideoAcceleratorFactories>; | 113 friend class base::RefCounted<GpuVideoAcceleratorFactories>; |
110 virtual ~GpuVideoAcceleratorFactories() {} | 114 virtual ~GpuVideoAcceleratorFactories() {} |
111 }; | 115 }; |
112 | 116 |
113 } // namespace media | 117 } // namespace media |
114 | 118 |
115 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 119 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
OLD | NEW |