Fix for renderer crash during video playback
authorChandan Padhi <c.padhi@samsung.com>
Wed, 25 Feb 2015 09:45:56 +0000 (15:15 +0530)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
If we scroll/zoom the page during video playback, renderer
crash is observed. Currently, invalidation of video layer
happens on the main thread in WebMediaPlayerTizen. It should
happen on the compositor thread instead. This patch ensures
that and thus avoids the crash.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=11278
Reviewed by: SeungSeop Park, Venugopal S M

Change-Id: I40b7fa90c467e80af06f8ce39de4d3a763f1117e
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
tizen_src/impl/media/base/tizen/webmediaplayer_tizen.cc

index 446e653..76f7b62 100644 (file)
@@ -64,6 +64,8 @@ WebMediaPlayerTizen::WebMediaPlayerTizen(
       client_(client),
       media_log_(new content::RenderMediaLog()),
       delegate_(delegate),
+      compositor_task_runner_(
+          content::RenderThreadImpl::current()->compositor_message_loop_proxy()),
       compositor_(new media::VideoFrameCompositor(
           BIND_TO_RENDER_LOOP(&WebMediaPlayerTizen::OnNaturalSizeChanged),
           BIND_TO_RENDER_LOOP(&WebMediaPlayerTizen::OnOpacityChanged))),