// EXTERNAL INCLUDES
#include <dali/integration-api/debug.h>
+#include <dali/integration-api/gl-defines.h>
#include <cstring>
// INTERNAL INCLUDES
}
default:
{
- DALI_LOG_WARNING( "Wrong color depth." );
+ DALI_LOG_WARNING( "Wrong color depth.\n" );
return;
}
}
{
if( tbm_surface_destroy( mTbmsurface ) != TBM_SURFACE_ERROR_NONE )
{
- DALI_LOG_ERROR( "Failed to destroy tbm_surface" );
+ DALI_LOG_ERROR( "Failed to destroy tbm_surface\n" );
}
}
}
if( tbm_surface_map( mTbmsurface, TBM_SURF_OPTION_READ, &surface_info) != TBM_SURFACE_ERROR_NONE )
{
- DALI_LOG_ERROR( "Fail to map tbm_surface" );
+ DALI_LOG_ERROR( "Fail to map tbm_surface\n" );
width = 0;
height = 0;
}
default:
{
- DALI_LOG_WARNING( "Tbm surface has unsupported pixel format." );
+ DALI_LOG_WARNING( "Tbm surface has unsupported pixel format.\n" );
pixbuf.resize( 0 );
width = 0;
if( tbm_surface_unmap( mTbmsurface ) != TBM_SURFACE_ERROR_NONE )
{
- DALI_LOG_ERROR( "Fail to unmap tbm_surface" );
+ DALI_LOG_ERROR( "Fail to unmap tbm_surface\n" );
}
return true;
}
- DALI_LOG_WARNING( "TBM surface does not exist." );
+ DALI_LOG_WARNING( "TBM surface does not exist.\n" );
width = 0;
height = 0;
{
if( tbm_surface_destroy( mTbmsurface ) != TBM_SURFACE_ERROR_NONE )
{
- DALI_LOG_ERROR( "Failed to destroy tbm_surface" );
+ DALI_LOG_ERROR( "Failed to destroy tbm_surface\n" );
}
mTbmsurface = NULL;
return SAMPLER_TYPE;
}
+int NativeImageSource::GetEglImageTextureTarget()
+{
+ return GL_TEXTURE_EXTERNAL_OES;
+}
+
} // namespace Adaptor
} // namespace internal