Direct rendering and pixmap sharing enabled for emulator 81/10281/2
authorjinhyung.jo <jinhyung.jo@samsung.com>
Thu, 26 Sep 2013 06:46:59 +0000 (15:46 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 14 Nov 2013 21:48:29 +0000 (13:48 -0800)
Change-Id: If919a938e0a974354fe7b0293f4e8968ecb70955
Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp
Source/cmake/OptionsTizen.cmake

index 8562fb5..42e404f 100755 (executable)
@@ -528,7 +528,13 @@ void TextureMapperGL::drawTextureRectangleARB(uint32_t texture, Flags flags, con
     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()))
@@ -791,7 +797,13 @@ void TextureMapperGL::drawTexturedQuadWithProgram(TextureMapperShaderProgram* pr
     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));
 
index 059edbe..9d071ee 100644 (file)
@@ -327,10 +327,11 @@ IF ("${EFL_TARGET}" STREQUAL "i386")
     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)