| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 NV12_SINGLE_GMB, // One NV12 GMB | 67 NV12_SINGLE_GMB, // One NV12 GMB |
| 68 NV12_DUAL_GMB, // One R8, one RG88 GMB | 68 NV12_DUAL_GMB, // One R8, one RG88 GMB |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 // Return whether GPU encoding/decoding is enabled. | 71 // Return whether GPU encoding/decoding is enabled. |
| 72 virtual bool IsGpuVideoAcceleratorEnabled() = 0; | 72 virtual bool IsGpuVideoAcceleratorEnabled() = 0; |
| 73 | 73 |
| 74 // Return the channel token, or an empty token if the channel is unusable. | 74 // Return the channel token, or an empty token if the channel is unusable. |
| 75 virtual base::UnguessableToken GetChannelToken() = 0; | 75 virtual base::UnguessableToken GetChannelToken() = 0; |
| 76 | 76 |
| 77 // Returns the |route_id| of the command buffer. |
| 78 virtual int32_t GetCommandBufferRouteId() = 0; |
| 79 |
| 77 // Caller owns returned pointer, but should call Destroy() on it (instead of | 80 // Caller owns returned pointer, but should call Destroy() on it (instead of |
| 78 // directly deleting) for proper destruction, as per the | 81 // directly deleting) for proper destruction, as per the |
| 79 // VideoDecodeAccelerator interface. | 82 // VideoDecodeAccelerator interface. |
| 80 virtual std::unique_ptr<VideoDecodeAccelerator> | 83 virtual std::unique_ptr<VideoDecodeAccelerator> |
| 81 CreateVideoDecodeAccelerator() = 0; | 84 CreateVideoDecodeAccelerator() = 0; |
| 82 | 85 |
| 83 // Caller owns returned pointer, but should call Destroy() on it (instead of | 86 // Caller owns returned pointer, but should call Destroy() on it (instead of |
| 84 // directly deleting) for proper destruction, as per the | 87 // directly deleting) for proper destruction, as per the |
| 85 // VideoEncodeAccelerator interface. | 88 // VideoEncodeAccelerator interface. |
| 86 virtual std::unique_ptr<VideoEncodeAccelerator> | 89 virtual std::unique_ptr<VideoEncodeAccelerator> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 GetVideoEncodeAcceleratorSupportedProfiles() = 0; | 130 GetVideoEncodeAcceleratorSupportedProfiles() = 0; |
| 128 | 131 |
| 129 protected: | 132 protected: |
| 130 friend class base::RefCounted<GpuVideoAcceleratorFactories>; | 133 friend class base::RefCounted<GpuVideoAcceleratorFactories>; |
| 131 virtual ~GpuVideoAcceleratorFactories() {} | 134 virtual ~GpuVideoAcceleratorFactories() {} |
| 132 }; | 135 }; |
| 133 | 136 |
| 134 } // namespace media | 137 } // namespace media |
| 135 | 138 |
| 136 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 139 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
| OLD | NEW |