}
#if ENABLE(TIZEN_WEBKIT2_TILED_AC_SHARED_PLATFORM_SURFACE)
-/*
-// Defined but not used.
-static gboolean platformSurfaceUpdateTimeoutCallback(VideoLayerTizen* layer)
-{
- layer->notifySyncRequired();
- return FALSE;
-}
-*/
-
bool VideoLayerTizen::swapPlatformSurfaces()
{
return true;
if (m_platformSurface)
m_platformSurfaceToBeRemoved = m_platformSurface.release();
+ // Align to 16. (If not aligned to 16, pixmap will be created again.)
+ int remainder = size.width() % 16;
+ if (remainder) {
+ size.setHeight(size.height() + (16 - remainder) * (static_cast<float>(size.height()) / size.width()));
+ size.setWidth(size.width() + (16 - remainder));
+ }
+
m_platformSurface = SharedVideoPlatformSurfaceTizen::create(size);
m_platformSurface->setVideoPlatformSurfaceUpdateListener(this);