[WK2][EFL] Add a common code using Color instead of QColor
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jul 2012 10:31:12 +0000 (10:31 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jul 2012 10:31:12 +0000 (10:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=91580

Patch by YoungTaeck Song <youngtaeck.song@samsung.com> on 2012-07-18
Reviewed by Simon Hausmann.

This patch is a subset of Efl's UI_SIDE_COMPOSITING implementation.
drawBorder's argument is QColor. So add a common code using Color to be used by Efl.

* UIProcess/texmap/LayerBackingStore.cpp:
(WebKit::LayerBackingStore::paintToTextureMapper):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@122941 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/texmap/LayerBackingStore.cpp

index d2a9c44..e064ec9 100644 (file)
@@ -1,3 +1,16 @@
+2012-07-18  YoungTaeck Song  <youngtaeck.song@samsung.com>
+
+        [WK2][EFL] Add a common code using Color instead of QColor
+        https://bugs.webkit.org/show_bug.cgi?id=91580
+
+        Reviewed by Simon Hausmann.
+
+        This patch is a subset of Efl's UI_SIDE_COMPOSITING implementation.
+        drawBorder's argument is QColor. So add a common code using Color to be used by Efl.
+
+        * UIProcess/texmap/LayerBackingStore.cpp:
+        (WebKit::LayerBackingStore::paintToTextureMapper):
+
 2012-07-17  Christophe Dumez  <christophe.dumez@intel.com>
 
         [EFL] Replace 0 by NULL in public headers documentation
index 967f075..43dbe0c 100644 (file)
@@ -141,7 +141,8 @@ void LayerBackingStore::paintToTextureMapper(TextureMapper* textureMapper, const
         static bool shouldDebug = shouldShowTileDebugVisuals();
         if (!shouldDebug)
             continue;
-        textureMapper->drawBorder(QColor(Qt::red), 2, tile->rect(), transform);
+
+        textureMapper->drawBorder(Color(0xFF, 0, 0), 2, tile->rect(), transform);
         textureMapper->drawRepaintCounter(static_cast<LayerBackingStoreTile*>(tile)->repaintCount(), 8, tilesToPaint[i]->rect().location(), transform);
     }
 }