Index: content/common/gpu/client/gpu_video_encode_accelerator_host.cc |
diff --git a/content/common/gpu/client/gpu_video_encode_accelerator_host.cc b/content/common/gpu/client/gpu_video_encode_accelerator_host.cc |
index fafa7eb00da568b982ab397b3c77097d7cf9ebcc..3244cdfad0c5ea72712a8e8cf8b7a0d53727197a 100644 |
--- a/content/common/gpu/client/gpu_video_encode_accelerator_host.cc |
+++ b/content/common/gpu/client/gpu_video_encode_accelerator_host.cc |
@@ -39,12 +39,6 @@ GpuVideoEncodeAcceleratorHost::~GpuVideoEncodeAcceleratorHost() { |
impl_->RemoveDeletionObserver(this); |
} |
-// static |
-std::vector<media::VideoEncodeAccelerator::SupportedProfile> |
-GpuVideoEncodeAcceleratorHost::GetSupportedProfiles() { |
- return GpuVideoEncodeAccelerator::GetSupportedProfiles(); |
-} |
- |
bool GpuVideoEncodeAcceleratorHost::OnMessageReceived( |
const IPC::Message& message) { |
bool handled = true; |
@@ -75,6 +69,18 @@ void GpuVideoEncodeAcceleratorHost::OnChannelError() { |
NOTIFY_ERROR(kPlatformFailureError) << "OnChannelError()"; |
} |
+std::vector<media::VideoEncodeAccelerator::SupportedProfile> |
+GpuVideoEncodeAcceleratorHost::GetSupportedProfiles() { |
+ DCHECK(CalledOnValidThread()); |
+ std::vector<media::VideoEncodeAccelerator::SupportedProfile> profiles; |
+ if (!channel_) |
+ return profiles; |
+ |
+ Send(new GpuCommandBufferMsg_VideoEncodeAcceleratorGetSupportedProfiles( |
+ impl_->GetRouteID(), &profiles)); |
+ return profiles; |
+} |
+ |
bool GpuVideoEncodeAcceleratorHost::Initialize( |
media::VideoFrame::Format input_format, |
const gfx::Size& input_visible_size, |