Bug 97548 - [Qt] r122720 causes performance regression with DirectFB on ARMv7
Summary: [Qt] r122720 causes performance regression with DirectFB on ARMv7
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Zoltan Horvath
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-25 03:31 PDT by Zoltan Horvath
Modified: 2012-10-08 06:44 PDT (History)
16 users (show)

See Also:


Attachments
Revert patch from july 2012: Change NativeImagePtr from QPixmap* to QImage* (54.72 KB, patch)
2012-10-01 01:54 PDT, Stephane Cerveau
no flags Details | Formatted Diff | Diff
update to build with opengl (59.04 KB, patch)
2012-10-01 06:59 PDT, Stephane Cerveau
no flags Details | Formatted Diff | Diff
proposed revert (54.13 KB, patch)
2012-10-07 19:49 PDT, Zoltan Horvath
gyuyoung.kim: commit-queue-
Details | Formatted Diff | Diff
proposed revert, gtk+efl build fixed (53.55 KB, patch)
2012-10-07 20:06 PDT, Zoltan Horvath
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Stephane Cerveau 2012-10-01 01:54:12 PDT
Created attachment 166428 [details]
Revert patch from july 2012: Change NativeImagePtr from QPixmap* to QImage*

I revert from patch:

- 62cc457176734d84d4827f0e0bf59ed425d7ef7d
- bd883b59bc785c680f03a6c3a1b28cc6ea48390a
- 7a62d58c41f7959a96737d4d65ea129d9f26d3e8
- 2973e24f23a2dd9d5f483f39b77264b791d96fd3 ( main commit)
Comment 2 Stephane Cerveau 2012-10-01 06:59:16 PDT
Created attachment 166467 [details]
update to build with opengl

Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp is now building.
Revert eae63a44dc6d532fa30225ef8ee9335b90ef4475
Comment 3 Balazs Kelemen 2012-10-07 06:26:16 PDT
(In reply to comment #2)
> Created an attachment (id=166467) [details]
> update to build with opengl
> 
> Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp is now building.
> Revert eae63a44dc6d532fa30225ef8ee9335b90ef4475

Why didn't you set it for review (r?)
Comment 4 Zoltan Horvath 2012-10-07 19:49:18 PDT
Created attachment 167495 [details]
proposed revert
Comment 5 Gyuyoung Kim 2012-10-07 19:59:22 PDT
Comment on attachment 167495 [details]
proposed revert

Attachment 167495 [details] did not pass efl-ews (efl):
Output: http://queues.webkit.org/results/14196744
Comment 6 Zoltan Horvath 2012-10-07 20:06:17 PDT
Created attachment 167497 [details]
proposed revert, gtk+efl build fixed
Comment 7 Jocelyn Turcotte 2012-10-08 06:26:39 PDT
Comment on attachment 167497 [details]
proposed revert, gtk+efl build fixed

I did the revert locally to have a better idea and this looks good.
One thing is that we might have to apply this extra chunk when we cherry pick this patch to the QtWebKit 2.3 branch:

--- b/Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp
+++ b/Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp
@@ -491,13 +491,8 @@
         qtImage = QImage::fromData(reinterpret_cast<const uchar*>(image->data()->data()), image->data()->size());
     else {
         QPixmap* nativePixmap = image->nativeImageForCurrentFrame();
-#if HAVE(QT5)
         // With QPA, we can avoid a deep copy.
         qtImage = *nativePixmap->handle()->buffer();
-#else
-        // This might be a deep copy, depending on other references to the pixmap.
-        qtImage = nativePixmap->toImage();
-#endif
     }
 
     AlphaOp alphaOp = AlphaDoNothing;
Comment 8 WebKit Review Bot 2012-10-08 06:44:09 PDT
Comment on attachment 167497 [details]
proposed revert, gtk+efl build fixed

Clearing flags on attachment: 167497

Committed r130636: <http://trac.webkit.org/changeset/130636>
Comment 9 WebKit Review Bot 2012-10-08 06:44:14 PDT
All reviewed patches have been landed.  Closing bug.