impl_->RemoveDeletionObserver(this);
}
-// static
-std::vector<media::VideoEncodeAccelerator::SupportedProfile>
-GpuVideoEncodeAcceleratorHost::GetSupportedProfiles() {
- return GpuVideoEncodeAccelerator::GetSupportedProfiles();
-}
-
bool GpuVideoEncodeAcceleratorHost::OnMessageReceived(
const IPC::Message& message) {
bool handled = true;
NOTIFY_ERROR(kPlatformFailureError) << "OnChannelError()";
}
+std::vector<media::VideoEncodeAccelerator::SupportedProfile>
+GpuVideoEncodeAcceleratorHost::GetSupportedProfiles() {
+ DCHECK(CalledOnValidThread());
+ if (!channel_)
+ return std::vector<media::VideoEncodeAccelerator::SupportedProfile>();
+ return channel_->gpu_info().video_encode_accelerator_supported_profiles;
+}
+
bool GpuVideoEncodeAcceleratorHost::Initialize(
media::VideoFrame::Format input_format,
const gfx::Size& input_visible_size,