| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 bool key_frame) override; | 74 bool key_frame) override; |
| 75 void NotifyError(media::VideoEncodeAccelerator::Error error) override; | 75 void NotifyError(media::VideoEncodeAccelerator::Error error) override; |
| 76 | 76 |
| 77 // ResourceHost implementation. | 77 // ResourceHost implementation. |
| 78 int32_t OnResourceMessageReceived( | 78 int32_t OnResourceMessageReceived( |
| 79 const IPC::Message& msg, | 79 const IPC::Message& msg, |
| 80 ppapi::host::HostMessageContext* context) override; | 80 ppapi::host::HostMessageContext* context) override; |
| 81 | 81 |
| 82 // GpuControlClient implementation. | 82 // GpuControlClient implementation. |
| 83 void OnGpuControlLostContext() final; | 83 void OnGpuControlLostContext() final; |
| 84 void OnGpuControlLostContextMaybeReentrant() final; |
| 84 void OnGpuControlErrorMessage(const char* msg, int id) final {} | 85 void OnGpuControlErrorMessage(const char* msg, int id) final {} |
| 85 | 86 |
| 86 int32_t OnHostMsgGetSupportedProfiles( | 87 int32_t OnHostMsgGetSupportedProfiles( |
| 87 ppapi::host::HostMessageContext* context); | 88 ppapi::host::HostMessageContext* context); |
| 88 int32_t OnHostMsgInitialize(ppapi::host::HostMessageContext* context, | 89 int32_t OnHostMsgInitialize(ppapi::host::HostMessageContext* context, |
| 89 PP_VideoFrame_Format input_format, | 90 PP_VideoFrame_Format input_format, |
| 90 const PP_Size& input_visible_size, | 91 const PP_Size& input_visible_size, |
| 91 PP_VideoProfile output_profile, | 92 PP_VideoProfile output_profile, |
| 92 uint32_t initial_bitrate, | 93 uint32_t initial_bitrate, |
| 93 PP_HardwareAcceleration acceleration); | 94 PP_HardwareAcceleration acceleration); |
| (...skipping 79 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 |