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

Unified Diff: content/public/renderer/video_encode_accelerator.cc

Issue 2573873002: Disable HW accelerator for Cast on Android (Closed)
Patch Set: address comments Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/video_encode_accelerator.cc
diff --git a/content/public/renderer/video_encode_accelerator.cc b/content/public/renderer/video_encode_accelerator.cc
index 3a28df7ff6e5c3d1d153222985bf5c68325dd6aa..6b3fddd30b8f124274dcc43a5dfafbd07523319f 100644
--- a/content/public/renderer/video_encode_accelerator.cc
+++ b/content/public/renderer/video_encode_accelerator.cc
@@ -34,11 +34,17 @@ void CreateVideoEncodeAccelerator(
media::VideoEncodeAccelerator::SupportedProfiles
GetSupportedVideoEncodeAcceleratorProfiles() {
+ // In https://crbug.com/664652, H264 HW accelerator is enabled on Android for
+ // RTC by Default. Keep HW accelerator disabled for Cast as before at present.
+#if defined(OS_ANDROID)
+ return media::VideoEncodeAccelerator::SupportedProfiles();
+#else
media::GpuVideoAcceleratorFactories* gpu_factories =
RenderThreadImpl::current()->GetGpuFactories();
if (!gpu_factories || !gpu_factories->IsGpuVideoAcceleratorEnabled())
return media::VideoEncodeAccelerator::SupportedProfiles();
return gpu_factories->GetVideoEncodeAcceleratorSupportedProfiles();
+#endif // defined(OS_ANDROID)
}
} // namespace content
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698