Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 568413002: Add VEA supported profiles to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address piman's comment -- create codecs_ lazily Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_)

Powered by Google App Engine
This is Rietveld 408576698