Changeset 83490 in webkit


Ignore:
Timestamp:
Apr 11, 2011 1:43:51 PM (13 years ago)
Author:
senorblanco@chromium.org
Message:

2011-04-05 Stephen White <senorblanco@chromium.org>

Fix for jittering when animating a rotated image.
https://bugs.webkit.org/show_bug.cgi?id=50775

Make GraphicsContext::roundToDevicePixels a no-op on Chrome/Mac.

  • platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::roundToDevicePixels):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r83483 r83490  
     12011-04-05  Stephen White  <senorblanco@chromium.org>
     2
     3        Fix for jittering when animating a rotated image.
     4        https://bugs.webkit.org/show_bug.cgi?id=50775
     5
     6        Make GraphicsContext::roundToDevicePixels a no-op on Chrome/Mac.
     7
     8        * platform/graphics/cg/GraphicsContextCG.cpp:
     9        (WebCore::GraphicsContext::roundToDevicePixels):
     10
    1112011-04-06  Xiaomei Ji  <xji@chromium.org>
    212
  • trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp

    r83253 r83490  
    11751175FloatRect GraphicsContext::roundToDevicePixels(const FloatRect& rect, RoundingMode roundingMode)
    11761176{
     1177#if PLATFORM(CHROMIUM)
     1178    return rect;
     1179#else
    11771180    // It is not enough just to round to pixels in device space. The rotation part of the
    11781181    // affine transform matrix to device space can mess with this conversion if we have a
     
    12151218    FloatPoint roundedLowerRight = FloatPoint(deviceLowerRight.x / deviceScaleX, deviceLowerRight.y / deviceScaleY);
    12161219    return FloatRect(roundedOrigin, roundedLowerRight - roundedOrigin);
     1220#endif
    12171221}
    12181222
Note: See TracChangeset for help on using the changeset viewer.