Changeset 39712 in webkit


Ignore:
Timestamp:
Jan 8, 2009 10:58:50 AM (15 years ago)
Author:
eric@webkit.org
Message:

2009-01-08 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Eric Seidel.

Add the first few files from platform/graphics/skia
https://bugs.webkit.org/show_bug.cgi?id=23191

These are all pretty simple.
Eventually BitmapImageSingleFrameSkia might grow a .cpp file, for now it's just a header.
SkiaUtils needs to die, but that can come later, no need to block up-streaming now.

  • platform/graphics/skia/BitmapImageSingleFrameSkia.h: Added. (WebCore::BitmapImageSingleFrameSkia::isBitmapImage): (WebCore::BitmapImageSingleFrameSkia::size): (WebCore::BitmapImageSingleFrameSkia::destroyDecodedData): (WebCore::BitmapImageSingleFrameSkia::decodedSize): (WebCore::BitmapImageSingleFrameSkia::nativeImageForCurrentFrame): (WebCore::BitmapImageSingleFrameSkia::BitmapImageSingleFrameSkia):
  • platform/graphics/skia/FloatPointSkia.cpp: Copied from WebCore/platform/graphics/mac/FloatPointMac.mm. (WebCore::FloatPoint::FloatPoint): (WebCore::FloatPoint::operator SkPoint):
  • platform/graphics/skia/FloatRectSkia.cpp: Copied from WebCore/platform/graphics/qt/IntRectQt.cpp. (WebCore::FloatRect::FloatRect): (WebCore::FloatRect::operator SkRect):
  • platform/graphics/skia/IntPointSkia.cpp: Copied from WebCore/platform/graphics/win/IntPointWin.cpp. (WebCore::IntPoint::IntPoint): (WebCore::IntPoint::operator SkIPoint): (WebCore::IntPoint::operator SkPoint):
  • platform/graphics/skia/IntRectSkia.cpp: Copied from WebCore/platform/graphics/qt/IntRectQt.cpp. (WebCore::IntRect::operator SkIRect): (WebCore::IntRect::operator SkRect): (WebCore::IntRect::IntRect):
  • platform/graphics/skia/SkiaUtils.cpp: Added. (WebCore::WebCorePointToSkiaPoint): (WebCore::WebCoreRectToSkiaRect): (WebCore::): (WebCore::WebCoreCompositeToSkiaComposite): (WebCore::InvScaleByte): (WebCore::SkPMColorToColor): (WebCore::SkPMColorToWebCoreColor): (WebCore::IntersectRectAndRegion): (WebCore::ClipRectToCanvas): (WebCore::SkPathContainsPoint): (WebCore::scratchContext):
  • platform/graphics/skia/SkiaUtils.h: Added. (WebCore::WebCoreFloatToSkScalar): (WebCore::WebCoreDoubleToSkScalar):
Location:
trunk/WebCore
Files:
8 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r39711 r39712  
     12009-01-08  Dimitri Glazkov  <dglazkov@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Add the first few files from platform/graphics/skia
     6        https://bugs.webkit.org/show_bug.cgi?id=23191
     7       
     8        These are all pretty simple.
     9        Eventually BitmapImageSingleFrameSkia might grow a .cpp file, for now it's just a header.
     10        SkiaUtils needs to die, but that can come later, no need to block up-streaming now.
     11
     12        * platform/graphics/skia/BitmapImageSingleFrameSkia.h: Added.
     13        (WebCore::BitmapImageSingleFrameSkia::isBitmapImage):
     14        (WebCore::BitmapImageSingleFrameSkia::size):
     15        (WebCore::BitmapImageSingleFrameSkia::destroyDecodedData):
     16        (WebCore::BitmapImageSingleFrameSkia::decodedSize):
     17        (WebCore::BitmapImageSingleFrameSkia::nativeImageForCurrentFrame):
     18        (WebCore::BitmapImageSingleFrameSkia::BitmapImageSingleFrameSkia):
     19        * platform/graphics/skia/FloatPointSkia.cpp: Copied from WebCore/platform/graphics/mac/FloatPointMac.mm.
     20        (WebCore::FloatPoint::FloatPoint):
     21        (WebCore::FloatPoint::operator SkPoint):
     22        * platform/graphics/skia/FloatRectSkia.cpp: Copied from WebCore/platform/graphics/qt/IntRectQt.cpp.
     23        (WebCore::FloatRect::FloatRect):
     24        (WebCore::FloatRect::operator SkRect):
     25        * platform/graphics/skia/IntPointSkia.cpp: Copied from WebCore/platform/graphics/win/IntPointWin.cpp.
     26        (WebCore::IntPoint::IntPoint):
     27        (WebCore::IntPoint::operator SkIPoint):
     28        (WebCore::IntPoint::operator SkPoint):
     29        * platform/graphics/skia/IntRectSkia.cpp: Copied from WebCore/platform/graphics/qt/IntRectQt.cpp.
     30        (WebCore::IntRect::operator SkIRect):
     31        (WebCore::IntRect::operator SkRect):
     32        (WebCore::IntRect::IntRect):
     33        * platform/graphics/skia/SkiaUtils.cpp: Added.
     34        (WebCore::WebCorePointToSkiaPoint):
     35        (WebCore::WebCoreRectToSkiaRect):
     36        (WebCore::):
     37        (WebCore::WebCoreCompositeToSkiaComposite):
     38        (WebCore::InvScaleByte):
     39        (WebCore::SkPMColorToColor):
     40        (WebCore::SkPMColorToWebCoreColor):
     41        (WebCore::IntersectRectAndRegion):
     42        (WebCore::ClipRectToCanvas):
     43        (WebCore::SkPathContainsPoint):
     44        (WebCore::scratchContext):
     45        * platform/graphics/skia/SkiaUtils.h: Added.
     46        (WebCore::WebCoreFloatToSkScalar):
     47        (WebCore::WebCoreDoubleToSkScalar):
     48
    1492009-01-08  Pierre-Olivier Latour  <pol@apple.com>
    250
Note: See TracChangeset for help on using the changeset viewer.