Use contents scale even if the layer's transform is not affine
authorHyeonji Kim <hyeonji.kim@samsung.com>
Tue, 1 Oct 2013 11:56:43 +0000 (20:56 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Wed, 2 Oct 2013 07:50:59 +0000 (07:50 +0000)
[Title] Use contents scale even if the layer's transform is not affine
[Issue#] P131001-01728
[Problem] The image of 3D transform layer is not clear
[Cause] Always use contents scale of 1 when the layer's transform is not affine
[Solution] Modify to use contents scale even if the layer's transform is not affine

Change-Id: I22475292d3517ff7a4f97154b1c5301cd6eb3624

Source/WTF/wtf/Platform.h
Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp [changed mode: 0755->0644]

index 59fcd28..b63bcda 100644 (file)
 #define WTF_USE_UI_SIDE_COMPOSITING 1 /* Youngtaeck Song(youngtaeck.song@samsung.com) : Compositing on the UI-process in WebKit2 */
 #define ENABLE_TIZEN_CANVAS_GRAPHICS_SURFACE 1 /* Heejin Chung(heejin.r.chung@samsung.com) : WebGL Based on GraphicsSurface */
 #define ENABLE_TIZEN_SET_INITIAL_COLOR_OF_WEBVIEW_EVAS_IMAGE 1 /* Youngtaeck Song(youngtaeck.song@samsung.com) : Set initial color of webview evas image */
+#define ENABLE_TIZEN_USE_CONTENTS_SCALE 1 /* Hyeonji Kim(hyeonji.kim@samsung.com) : use contents scale even if the layer's transform is not affine */
 #endif
 #define ENABLE_TIZEN_WEBKIT2_DDK_CHECK 1 /* JungJik Lee(jungjik.lee@samsung.com) : Fail in initialzing view when No DDK installed */
 
old mode 100755 (executable)
new mode 100644 (file)
index 3a43f2c..5ce79e6
@@ -1046,8 +1046,10 @@ bool WebGraphicsLayer::selfOrAncestorHaveNonAffineTransforms()
     if (m_animations.hasActiveAnimationsOfType(AnimatedPropertyWebkitTransform))
         return true;
 
+#if !ENABLE(TIZEN_USE_CONTENTS_SCALE)
     if (!m_layerTransform.combined().isAffine())
         return true;
+#endif
 
     return false;
 }