Changeset 54705 in webkit


Ignore:
Timestamp:
Feb 11, 2010, 11:36:44 PM (16 years ago)
Author:
eric@webkit.org
Message:

2010-02-11 Ariya Hidayat <ariya.hidayat@gmail.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Use clipRegion instead of clipPath to save lots of CPU cycles.

https://bugs.webkit.org/show_bug.cgi?id=32375

  • platform/graphics/qt/GraphicsContextQt.cpp: (WebCore::GraphicsContext::clipOut): (WebCore::GraphicsContext::clipOutEllipseInRect):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r54703 r54705  
     12010-02-11  Ariya Hidayat  <ariya.hidayat@gmail.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Use clipRegion instead of clipPath to save lots of CPU cycles.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=32375
     8
     9        * platform/graphics/qt/GraphicsContextQt.cpp:
     10        (WebCore::GraphicsContext::clipOut):
     11        (WebCore::GraphicsContext::clipOutEllipseInRect):
     12
    1132010-02-11  Yuzo Fujishima  <yuzo@google.com>
    214
  • trunk/WebCore/platform/graphics/qt/GraphicsContextQt.cpp

    r54623 r54705  
    950950    newClip.setFillRule(Qt::OddEvenFill);
    951951    if (p->hasClipping()) {
    952         newClip.addRect(p->clipPath().boundingRect());
     952        newClip.addRect(p->clipRegion().boundingRect());
    953953        newClip.addPath(clippedOut);
    954954        p->setClipPath(newClip, Qt::IntersectClip);
     
    10191019    newClip.setFillRule(Qt::OddEvenFill);
    10201020    if (p->hasClipping()) {
    1021         newClip.addRect(p->clipPath().boundingRect());
     1021        newClip.addRect(p->clipRegion().boundingRect());
    10221022        newClip.addRect(QRect(rect));
    10231023        p->setClipPath(newClip, Qt::IntersectClip);
     
    10411041    newClip.setFillRule(Qt::OddEvenFill);
    10421042    if (p->hasClipping()) {
    1043         newClip.addRect(p->clipPath().boundingRect());
     1043        newClip.addRect(p->clipRegion().boundingRect());
    10441044        newClip.addEllipse(QRect(rect));
    10451045        p->setClipPath(newClip, Qt::IntersectClip);
Note: See TracChangeset for help on using the changeset viewer.