Index: content/common/gpu/gpu_command_buffer_stub.cc |
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc |
index fa22f94ed7115517a26c8fa005a0cc4d4258cd69..cfc3afded09117b8dd181853891370b1193507e9 100644 |
--- a/content/common/gpu/gpu_command_buffer_stub.cc |
+++ b/content/common/gpu/gpu_command_buffer_stub.cc |
@@ -262,6 +262,9 @@ bool GpuCommandBufferStub::OnMessageReceived(const IPC::Message& message) { |
OnCreateVideoDecoder) |
IPC_MESSAGE_HANDLER_DELAY_REPLY(GpuCommandBufferMsg_CreateVideoEncoder, |
OnCreateVideoEncoder) |
+ IPC_MESSAGE_HANDLER_DELAY_REPLY( |
+ GpuCommandBufferMsg_VideoEncodeAcceleratorGetSupportedProfiles, |
+ OnVideoEncodeAcceleratorGetSupportedProfiles) |
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_SetSurfaceVisible, |
OnSetSurfaceVisible) |
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_RetireSyncPoint, |
@@ -854,6 +857,15 @@ void GpuCommandBufferStub::OnCreateVideoEncoder( |
// self-delete during destruction of this stub. |
} |
+void GpuCommandBufferStub::OnVideoEncodeAcceleratorGetSupportedProfiles( |
+ IPC::Message* reply_message) { |
+ std::vector<media::VideoEncodeAccelerator::SupportedProfile> profiles = |
+ GpuVideoEncodeAccelerator::GetSupportedProfiles(); |
+ GpuCommandBufferMsg_VideoEncodeAcceleratorGetSupportedProfiles:: |
+ WriteReplyParams(reply_message, profiles); |
+ Send(reply_message); |
+} |
+ |
void GpuCommandBufferStub::OnSetSurfaceVisible(bool visible) { |
TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnSetSurfaceVisible"); |
if (memory_manager_client_state_) |