Changeset 67675 in webkit


Ignore:
Timestamp:
Sep 16, 2010 3:35:30 PM (14 years ago)
Author:
andreas.kling@nokia.com
Message:

2010-09-16 Andreas Kling <andreas.kling@nokia.com>

Reviewed by Ariya Hidayat.

[Qt] Remove unnecessary QPainter::clipPath() call in TransparencyLayer()
https://bugs.webkit.org/show_bug.cgi?id=45923

QPainter::clipPath() can be very expensive, so use QPainter::hasClipping()
instead of QPainter::clipPath().isEmpty().

  • platform/graphics/qt/TransparencyLayer.h: (WebCore::TransparencyLayer::TransparencyLayer):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r67673 r67675  
     12010-09-16  Andreas Kling  <andreas.kling@nokia.com>
     2
     3        Reviewed by Ariya Hidayat.
     4
     5        [Qt] Remove unnecessary QPainter::clipPath() call in TransparencyLayer()
     6        https://bugs.webkit.org/show_bug.cgi?id=45923
     7
     8        QPainter::clipPath() can be very expensive, so use QPainter::hasClipping()
     9        instead of QPainter::clipPath().isEmpty().
     10
     11        * platform/graphics/qt/TransparencyLayer.h:
     12        (WebCore::TransparencyLayer::TransparencyLayer):
     13
    1142010-09-16  David Hyatt  <hyatt@apple.com>
    215
  • trunk/WebCore/platform/graphics/qt/TransparencyLayer.h

    r65784 r67675  
    6262        if (painter.paintEngine()->hasFeature(QPaintEngine::PorterDuff))
    6363            painter.setCompositionMode(p->compositionMode());
    64         // if the path is an empty region, this assignment disables all painting
    65         if (!p->clipPath().isEmpty())
     64        if (p->hasClipping())
    6665            painter.setClipPath(p->clipPath());
    6766    }
Note: See TracChangeset for help on using the changeset viewer.