OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_RENDERER_PEPPER_PEPPER_VIDEO_ENCODER_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_ENCODER_HOST_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_ENCODER_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_ENCODER_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 std::unique_ptr<base::SharedMemory> shm; | 64 std::unique_ptr<base::SharedMemory> shm; |
65 bool in_use; | 65 bool in_use; |
66 }; | 66 }; |
67 | 67 |
68 // media::VideoEncodeAccelerator implementation. | 68 // media::VideoEncodeAccelerator implementation. |
69 void RequireBitstreamBuffers(unsigned int input_count, | 69 void RequireBitstreamBuffers(unsigned int input_count, |
70 const gfx::Size& input_coded_size, | 70 const gfx::Size& input_coded_size, |
71 size_t output_buffer_size) override; | 71 size_t output_buffer_size) override; |
72 void BitstreamBufferReady(int32_t bitstream_buffer_id, | 72 void BitstreamBufferReady(int32_t bitstream_buffer_id, |
73 size_t payload_size, | 73 size_t payload_size, |
74 bool key_frame) override; | 74 bool key_frame, |
| 75 base::TimeDelta timestamp) override; |
75 void NotifyError(media::VideoEncodeAccelerator::Error error) override; | 76 void NotifyError(media::VideoEncodeAccelerator::Error error) override; |
76 | 77 |
77 // ResourceHost implementation. | 78 // ResourceHost implementation. |
78 int32_t OnResourceMessageReceived( | 79 int32_t OnResourceMessageReceived( |
79 const IPC::Message& msg, | 80 const IPC::Message& msg, |
80 ppapi::host::HostMessageContext* context) override; | 81 ppapi::host::HostMessageContext* context) override; |
81 | 82 |
82 // GpuControlClient implementation. | 83 // GpuControlClient implementation. |
83 void OnGpuControlLostContext() final; | 84 void OnGpuControlLostContext() final; |
84 void OnGpuControlLostContextMaybeReentrant() final; | 85 void OnGpuControlLostContextMaybeReentrant() final; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 #endif | 174 #endif |
174 | 175 |
175 base::WeakPtrFactory<PepperVideoEncoderHost> weak_ptr_factory_; | 176 base::WeakPtrFactory<PepperVideoEncoderHost> weak_ptr_factory_; |
176 | 177 |
177 DISALLOW_COPY_AND_ASSIGN(PepperVideoEncoderHost); | 178 DISALLOW_COPY_AND_ASSIGN(PepperVideoEncoderHost); |
178 }; | 179 }; |
179 | 180 |
180 } // namespace content | 181 } // namespace content |
181 | 182 |
182 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_ENCODER_HOST_H_ | 183 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_ENCODER_HOST_H_ |
OLD | NEW |