Revert "Fix the issue that some streaming video's screen is not updated."
authorYongGeol Jung <yg48.jung@samsung.com>
Fri, 19 Apr 2013 13:30:20 +0000 (22:30 +0900)
committerGerrit Code Review <gerrit2@kim11>
Fri, 19 Apr 2013 13:30:20 +0000 (22:30 +0900)
This reverts commit acb462183356cf9a763b40db6f4a175ea7117573

Source/WebCore/platform/graphics/gstreamer/tizen/SharedVideoPlatformSurfaceTizen.cpp
Source/WebCore/platform/graphics/surfaces/GraphicsSurface.h
Source/WebCore/platform/graphics/surfaces/tizen/GraphicsSurfaceTizen.cpp

index d5e13e7..0617193 100644 (file)
@@ -312,7 +312,7 @@ SharedVideoPlatformSurfaceTizen::SharedVideoPlatformSurfaceTizen(IntSize size)
         return;
 
     registerDamageHandler();
-    m_flags = GraphicsSurface::Is2D | GraphicsSurface::UseLinearFilter | GraphicsSurface::UpdateTexture;
+    m_flags = GraphicsSurface::Is2D | GraphicsSurface::UseLinearFilter;
     if (m_platformSurface->hasAlpha())
         m_flags |= GraphicsSurface::Alpha;
 
index 5737c16..78729e4 100755 (executable)
@@ -63,7 +63,6 @@ public:
         PremultipliedAlpha = 0x04
 #if ENABLE(TIZEN_WEBKIT2_TILED_AC_SHARED_PLATFORM_SURFACE)
         , UseLinearFilter = 0x08
-        , UpdateTexture = 0x10
 #endif
     };
 #endif
index 710b310..1eef303 100644 (file)
@@ -50,7 +50,7 @@ struct GraphicsSurfacePrivate {
         m_size = size;
     }
 
-    int getPlatformSurfaceTextureID(bool useLinearFilter, bool updateTexture) {
+    int getPlatformSurfaceTextureID(bool useLinearFilter) {
         if (!m_frontBuffer)
             return 0;
 
@@ -61,10 +61,6 @@ struct GraphicsSurfacePrivate {
             m_platformSurfaceTextures.set(m_frontBuffer, platformSurfaceTexture);
         } else
             platformSurfaceTexture = it->second;
-
-        if (updateTexture)
-            platformSurfaceTexture->updateTexture();
-
         return platformSurfaceTexture->id();
     }
 
@@ -93,7 +89,7 @@ uint64_t GraphicsSurface::platformExport()
 
 uint32_t GraphicsSurface::platformGetTextureID()
 {
-    return m_private->getPlatformSurfaceTextureID(m_canvasFlags & GraphicsSurface::UseLinearFilter, m_canvasFlags & GraphicsSurface::UpdateTexture);
+    return m_private->getPlatformSurfaceTextureID(m_canvasFlags & GraphicsSurface::UseLinearFilter);
 }
 
 void GraphicsSurface::platformPaintToTextureMapper(TextureMapper* textureMapper, const FloatRect& targetRect, const TransformationMatrix& transform, float opacity)