Enable TBM Video Rendering path for all profiles except RISCV and Emulator.
Create new local macro USE_TBM_ZERO_COPY for the same.
Change-Id: I48ab378edba8ed9dd977adaf19898064df1f6f19
Signed-off-by: pranayc1 <pranay.c1@samsung.com>
configs += external_media_video_decode_config
sources += external_media_video_decode_sources
deps += external_media_video_decode_deps
+ if (tizen_tbm_support && !(tizen_emulator_support || current_cpu == "riscv64")) {
+ defines = [ "USE_TBM_ZERO_COPY_PATH" ]
+ }
}
if (samsung_elementary_media_stream_source) {
// generating a new timestamp in here.
base::TimeDelta timestamp = GetCurrentTime();
-#if defined(TIZEN_TBM_SUPPORT) && BUILDFLAG(IS_TIZEN_TV)
+#if defined(TIZEN_TBM_SUPPORT) && defined(USE_TBM_ZERO_COPY_PATH)
gfx::TbmBufferHandle tbm_handle;
tbm_handle.tbm_surface = reinterpret_cast<uint64_t>(tbm_surface);
tbm_handle.media_packet = reinterpret_cast<uint64_t>(packet.release());
<< ", duration:" << packet->duration << ", Player(" << esplayer_
<< ", state:" << GetString(GetPlayerState());
-#if defined(TIZEN_TBM_SUPPORT) && BUILDFLAG(IS_TIZEN_TV)
+#if defined(TIZEN_TBM_SUPPORT) && defined(USE_TBM_ZERO_COPY_PATH)
gfx::TbmBufferHandle tbm_handle;
tbm_handle.tbm_surface = reinterpret_cast<uint64_t>(tbm_surface);
tbm_handle.media_packet = reinterpret_cast<uint64_t>(packet);