#include "media/base/video_frame.h"
#include "media/filters/tizen/ttvd_video_decoder.h"
+#if defined(THREAD_BOOSTER_SERVICE)
+#include "services/thread_booster/public/cpp/thread_booster.h"
+#endif // defined(THREAD_BOOSTER_SERVICE)
+
namespace media {
namespace {
}
time_progressing_ = true;
+
+#if defined(THREAD_BOOSTER_SERVICE)
+ // Increase priority, but only for threads that are crucial for playback
+ // stability. We need to keep the restricted for the effect to be visible.
+ thread_booster::BoostThreadByName("VideoFrameCompositor",
+ thread_booster::MediaType::kVideo,
+ thread_booster::BoostingLevel::kRealtime);
+ thread_booster::BoostThreadByName("Media", thread_booster::MediaType::kVideo,
+ thread_booster::BoostingLevel::kRealtime);
+#endif
+
if (video_resource_strategy_ ==
VideoResourceStrategy::kHardwareOnlyAndPause &&
video_resource_helper_) {