| 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_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ |
| 6 #define MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ | 6 #define MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 // IPC::Listener implementation | 54 // IPC::Listener implementation |
| 55 bool OnMessageReceived(const IPC::Message& message) override; | 55 bool OnMessageReceived(const IPC::Message& message) override; |
| 56 | 56 |
| 57 // media::VideoEncodeAccelerator::Client implementation. | 57 // media::VideoEncodeAccelerator::Client implementation. |
| 58 void RequireBitstreamBuffers(unsigned int input_count, | 58 void RequireBitstreamBuffers(unsigned int input_count, |
| 59 const gfx::Size& input_coded_size, | 59 const gfx::Size& input_coded_size, |
| 60 size_t output_buffer_size) override; | 60 size_t output_buffer_size) override; |
| 61 void BitstreamBufferReady(int32_t bitstream_buffer_id, | 61 void BitstreamBufferReady(int32_t bitstream_buffer_id, |
| 62 size_t payload_size, | 62 size_t payload_size, |
| 63 bool key_frame) override; | 63 bool key_frame, |
| 64 base::TimeDelta timestamp) override; |
| 64 void NotifyError(media::VideoEncodeAccelerator::Error error) override; | 65 void NotifyError(media::VideoEncodeAccelerator::Error error) override; |
| 65 | 66 |
| 66 // gpu::GpuCommandBufferStub::DestructionObserver implementation. | 67 // gpu::GpuCommandBufferStub::DestructionObserver implementation. |
| 67 void OnWillDestroyStub() override; | 68 void OnWillDestroyStub() override; |
| 68 | 69 |
| 69 // Static query for supported profiles. This query calls the appropriate | 70 // Static query for supported profiles. This query calls the appropriate |
| 70 // platform-specific version. The returned supported profiles vector will | 71 // platform-specific version. The returned supported profiles vector will |
| 71 // not contain duplicates. | 72 // not contain duplicates. |
| 72 static gpu::VideoEncodeAcceleratorSupportedProfiles GetSupportedProfiles( | 73 static gpu::VideoEncodeAcceleratorSupportedProfiles GetSupportedProfiles( |
| 73 const gpu::GpuPreferences& gpu_preferences); | 74 const gpu::GpuPreferences& gpu_preferences); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 128 |
| 128 // Weak pointer for media::VideoFrames that refer back to |this|. | 129 // Weak pointer for media::VideoFrames that refer back to |this|. |
| 129 base::WeakPtrFactory<GpuVideoEncodeAccelerator> weak_this_factory_; | 130 base::WeakPtrFactory<GpuVideoEncodeAccelerator> weak_this_factory_; |
| 130 | 131 |
| 131 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAccelerator); | 132 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAccelerator); |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 } // namespace media | 135 } // namespace media |
| 135 | 136 |
| 136 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ | 137 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ |
| OLD | NEW |