GL_CMD(glBindTexture(GL_TEXTURE_RECTANGLE_ARB, texture));
GL_CMD(glUniform1i(program->sourceTextureLocation(), 0));
+#if ENABLE(TIZEN_EMULATOR)
+ // It would be really great if we could call eglGetConfigAttrib(...egl_config, EGL_Y_INVERTED_NOK...)
+ // here and act according to the result, but EGL config is not available here
+ GL_CMD(glUniform1f(program->flipLocation(), !(flags & ShouldFlipTexture)));
+#else
GL_CMD(glUniform1f(program->flipLocation(), !!(flags & ShouldFlipTexture)));
+#endif
GL_CMD(glUniform2f(program->textureSizeLocation(), textureSize.width(), textureSize.height()));
if (TextureMapperShaderProgram::isValidUniformLocation(program->opacityLocation()))
GL_CMD(glBindTexture(GL_TEXTURE_2D, texture));
GL_CMD(glUniform1i(program->sourceTextureLocation(), 0));
+#if ENABLE(TIZEN_EMULATOR)
+ // It would be really great if we could call eglGetConfigAttrib(...egl_config, EGL_Y_INVERTED_NOK...)
+ // here and act according to the result, but EGL config is not available here
+ GL_CMD(glUniform1f(program->flipLocation(), !(flags & ShouldFlipTexture)));
+#else
GL_CMD(glUniform1f(program->flipLocation(), !!(flags & ShouldFlipTexture)));
+#endif
if (TextureMapperShaderProgram::isValidUniformLocation(program->opacityLocation()))
GL_CMD(glUniform1f(program->opacityLocation(), opacity));
SET(ENABLE_TIZEN_WEBKIT2_TILED_AC_SHARED_PLATFORM_SURFACE 1)
ELSEIF ("${EFL_TARGET}" STREQUAL "emulator")
MESSAGE("i386 emulator Build Mode <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<")
- ADD_DEFINITIONS(-DENABLE_TIZEN_WEBKIT2_DIRECT_RENDERING=0)
- SET(ENABLE_TIZEN_WEBKIT2_DIRECT_RENDERING 0)
- ADD_DEFINITIONS(-DENABLE_TIZEN_WEBKIT2_TILED_AC_SHARED_PLATFORM_SURFACE=0)
- SET(ENABLE_TIZEN_WEBKIT2_TILED_AC_SHARED_PLATFORM_SURFACE 0)
+ ADD_DEFINITIONS(-DENABLE_TIZEN_WEBKIT2_DIRECT_RENDERING=1)
+ SET(ENABLE_TIZEN_WEBKIT2_DIRECT_RENDERING 1)
+ ADD_DEFINITIONS(-DENABLE_TIZEN_WEBKIT2_TILED_AC_SHARED_PLATFORM_SURFACE=1)
+ SET(ENABLE_TIZEN_WEBKIT2_TILED_AC_SHARED_PLATFORM_SURFACE 1)
+ ADD_DEFINITIONS(-DENABLE_TIZEN_EMULATOR=1)
ELSE ()
ADD_DEFINITIONS(-DENABLE_TIZEN_WEBKIT2_DIRECT_RENDERING=1)
SET(ENABLE_TIZEN_WEBKIT2_DIRECT_RENDERING 1)