Revert "[Tizen] Add codes for Dali Windows Backend"
[platform/core/uifw/dali-adaptor.git] / dali / internal / graphics / gles20 / egl-implementation.cpp
old mode 100644 (file)
new mode 100755 (executable)
index 390fdc3..647087b
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 
 // EXTERNAL INCLUDES
 #include <dali/integration-api/debug.h>
-#include <dali/public-api/common/dali-common.h>
+
 #include <dali/public-api/common/dali-vector.h>
 
 // INTERNAL INCLUDES
+#include <dali/public-api/dali-adaptor-common.h>
 #include <dali/internal/graphics/gles20/gl-implementation.h>
 #include <dali/internal/graphics/gles20/egl-debug.h>
 
@@ -327,7 +328,8 @@ void EglImplementation::ChooseConfig( bool isWindowType, ColorDepth depth )
 
   configAttribs.PushBack( EGL_ALPHA_SIZE );
 #ifdef _ARCH_ARM_
-  configAttribs.PushBack( (depth == COLOR_DEPTH_32) ? 8 : 0 );
+  // For underlay video playback, we also need to set the alpha value of the 24/32bit window.
+  configAttribs.PushBack( 8 );
 #else
   // There is a bug in the desktop emulator
   // setting EGL_ALPHA_SIZE to 8 results in eglChooseConfig failing