From c49438b33dff625fd6ee0497b06022d600233c92 Mon Sep 17 00:00:00 2001 From: YongGeol Jung Date: Fri, 19 Apr 2013 22:30:20 +0900 Subject: [PATCH] Revert "Fix the issue that some streaming video's screen is not updated." This reverts commit acb462183356cf9a763b40db6f4a175ea7117573 --- .../graphics/gstreamer/tizen/SharedVideoPlatformSurfaceTizen.cpp | 2 +- Source/WebCore/platform/graphics/surfaces/GraphicsSurface.h | 1 - .../platform/graphics/surfaces/tizen/GraphicsSurfaceTizen.cpp | 8 ++------ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Source/WebCore/platform/graphics/gstreamer/tizen/SharedVideoPlatformSurfaceTizen.cpp b/Source/WebCore/platform/graphics/gstreamer/tizen/SharedVideoPlatformSurfaceTizen.cpp index d5e13e7..0617193 100644 --- a/Source/WebCore/platform/graphics/gstreamer/tizen/SharedVideoPlatformSurfaceTizen.cpp +++ b/Source/WebCore/platform/graphics/gstreamer/tizen/SharedVideoPlatformSurfaceTizen.cpp @@ -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; diff --git a/Source/WebCore/platform/graphics/surfaces/GraphicsSurface.h b/Source/WebCore/platform/graphics/surfaces/GraphicsSurface.h index 5737c16..78729e4 100755 --- a/Source/WebCore/platform/graphics/surfaces/GraphicsSurface.h +++ b/Source/WebCore/platform/graphics/surfaces/GraphicsSurface.h @@ -63,7 +63,6 @@ public: PremultipliedAlpha = 0x04 #if ENABLE(TIZEN_WEBKIT2_TILED_AC_SHARED_PLATFORM_SURFACE) , UseLinearFilter = 0x08 - , UpdateTexture = 0x10 #endif }; #endif diff --git a/Source/WebCore/platform/graphics/surfaces/tizen/GraphicsSurfaceTizen.cpp b/Source/WebCore/platform/graphics/surfaces/tizen/GraphicsSurfaceTizen.cpp index 710b310..1eef303 100644 --- a/Source/WebCore/platform/graphics/surfaces/tizen/GraphicsSurfaceTizen.cpp +++ b/Source/WebCore/platform/graphics/surfaces/tizen/GraphicsSurfaceTizen.cpp @@ -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) -- 2.7.4