[MM][WebRTC] Fix crash on WebRTC connection with S/W codec
authormsu.koo <msu.koo@samsung.com>
Thu, 26 Nov 2015 11:20:30 +0000 (20:20 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 07:55:23 +0000 (07:55 +0000)
Since M43, GetSupportedProfiles also reflected to VideoDecoder.
This patch is to let gpu_info_collector_efl also collect
decoder accelerator informations.

Also let TizenVideoDecodeAccelerator report supported profiles
which required by GpuVideoDecodeAccelerator.

Bug: http://165.213.149.170/jira/browse/TSAM-594

Reviewed by: sm.venugopal, sns.park

Change-Id: I0df6fdaaa1f7405d095f85a7617e0fe0ca6a7ebb
Signed-off-by: msu.koo <msu.koo@samsung.com>
tizen_src/chromium_impl/content/common/gpu/media/efl/tizen_video_decode_accelerator.cc
tizen_src/chromium_impl/gpu/config/gpu_info_collector_efl.cc

index e12d72b..1bfa0b5 100644 (file)
@@ -56,6 +56,17 @@ media::VideoDecodeAccelerator* CreateTizenVideoDecodeAccelerator() {
   return new TizenVideoDecodeAccelerator();
 }
 
+media::VideoDecodeAccelerator::SupportedProfiles GetSupportedTizenProfiles() {
+  media::VideoDecodeAccelerator::SupportedProfiles profiles;
+  media::VideoDecodeAccelerator::SupportedProfile profile;
+  profile.profile = media::H264PROFILE_MAIN;
+  profile.min_resolution.SetSize(0, 0);
+  profile.max_resolution.SetSize(1920, 1080);  // FHD
+  profiles.push_back(profile);
+
+  return profiles;
+}
+
 struct TizenVideoDecodeAccelerator::BitstreamBufferRef {
   BitstreamBufferRef(
       base::WeakPtr<media::VideoDecodeAccelerator::Client> client,
index f297975..1b24abf 100644 (file)
@@ -11,6 +11,7 @@
 #include "gpu/config/scoped_restore_non_owned_egl_context.h"
 
 #if defined(TIZEN_MULTIMEDIA_SUPPORT)
+#include "content/common/gpu/media/gpu_video_decode_accelerator.h"
 #include "content/common/gpu/media/gpu_video_encode_accelerator.h"
 #endif
 
@@ -73,6 +74,8 @@ CollectInfoResult CollectBasicGraphicsInfo(GPUInfo* gpu_info) {
 #if defined(TIZEN_MULTIMEDIA_SUPPORT)
   gpu_info->video_encode_accelerator_supported_profiles =
       content::GpuVideoEncodeAccelerator::GetSupportedProfiles();
+  gpu_info->video_decode_accelerator_supported_profiles =
+      content::GpuVideoDecodeAccelerator::GetSupportedProfiles();
 #endif
   return result;
 }