Changeset 35852
- Timestamp:
- 08/19/08 16:33:07 (3 months ago)
- Location:
- trunk/WebCore
- Files:
-
- 15 modified
-
ChangeLog (modified) (1 diff)
-
platform/graphics/AffineTransform.h (modified) (1 diff)
-
platform/graphics/FloatPoint.h (modified) (2 diffs)
-
platform/graphics/FloatRect.h (modified) (2 diffs)
-
platform/graphics/Gradient.h (modified) (1 diff)
-
platform/graphics/GraphicsContext.h (modified) (2 diffs)
-
platform/graphics/Image.h (modified) (1 diff)
-
platform/graphics/ImageBuffer.h (modified) (2 diffs)
-
platform/graphics/ImageSource.h (modified) (2 diffs)
-
platform/graphics/IntPoint.h (modified) (2 diffs)
-
platform/graphics/IntRect.h (modified) (2 diffs)
-
platform/graphics/Path.h (modified) (1 diff)
-
platform/graphics/Pattern.h (modified) (1 diff)
-
svg/graphics/SVGPaintServerPattern.h (modified) (1 diff)
-
svg/graphics/SVGPaintServerSolid.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r35851 r35852 1 2008-08-19 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Geoff Garen. 4 5 Add the beginnings of Skia graphics support to WebCore 6 as I try to begin the long process of un-forking the changes 7 needed to WebCore to make Andriod's WebCore build. 8 9 I'll follow this up with actual *Skia.cpp files in a separate patch. 10 11 * platform/graphics/AffineTransform.h: 12 * platform/graphics/FloatPoint.h: 13 * platform/graphics/FloatRect.h: 14 * platform/graphics/Gradient.h: 15 * platform/graphics/GraphicsContext.h: 16 * platform/graphics/Image.h: 17 * platform/graphics/ImageBuffer.h: 18 * platform/graphics/ImageSource.h: 19 * platform/graphics/IntPoint.h: 20 * platform/graphics/IntRect.h: 21 * platform/graphics/Path.h: 22 * platform/graphics/Pattern.h: 23 * svg/graphics/SVGPaintServerPattern.h: 24 * svg/graphics/SVGPaintServerSolid.h: 25 1 26 2008-08-19 Steve Falkenburg <sfalken@apple.com> 2 27 -
trunk/WebCore/platform/graphics/AffineTransform.h
r35773 r35852 36 36 #include <cairo.h> 37 37 typedef cairo_matrix_t PlatformAffineTransform; 38 #elif PLATFORM(SKIA) 39 #include "SkMatrix.h" 40 typedef SkMatrix PlatformAffineTransform; 38 41 #elif PLATFORM(WX) && USE(WXGC) 39 42 #include <wx/defs.h> -
trunk/WebCore/platform/graphics/FloatPoint.h
r31899 r35852 54 54 #endif 55 55 56 #if PLATFORM(SKIA) 57 struct SkPoint; 58 #endif 59 56 60 namespace WebCore { 57 61 … … 91 95 #if PLATFORM(SYMBIAN) 92 96 operator TPoint() const; 93 FloatPoint(const TPoint& ); 97 FloatPoint(const TPoint&); 98 #endif 99 100 #if PLATFORM(SKIA) 101 operator SkPoint() const; 102 FloatPoint(const SkPoint&); 94 103 #endif 95 104 -
trunk/WebCore/platform/graphics/FloatRect.h
r31899 r35852 50 50 #if PLATFORM(WX) && USE(WXGC) 51 51 class wxRect2DDouble; 52 #endif 53 54 #if PLATFORM(SKIA) 55 struct SkRect; 52 56 #endif 53 57 … … 140 144 #endif 141 145 146 #if PLATFORM(SKIA) 147 FloatRect(const SkRect&); 148 operator SkRect() const; 149 #endif 150 142 151 private: 143 152 FloatPoint m_location; -
trunk/WebCore/platform/graphics/Gradient.h
r35731 r35852 44 44 typedef struct _cairo_pattern cairo_pattern_t; 45 45 typedef cairo_pattern_t* PlatformGradient; 46 #elif PLATFORM(SKIA) 47 class SkShader; 48 typedef class SkShader* PlatformGradient; 49 typedef class SkShader* PlatformPattern; 46 50 #else 47 51 typedef void* PlatformGradient; -
trunk/WebCore/platform/graphics/GraphicsContext.h
r35743 r35852 63 63 typedef wxWindowDC PlatformGraphicsContext; 64 64 #endif 65 #elif PLATFORM(SKIA) 66 typedef class PlatformContextSkia PlatformGraphicsContext; 65 67 #else 66 68 typedef void PlatformGraphicsContext; … … 74 76 #if PLATFORM(WIN) 75 77 typedef struct HDC__* HDC; 78 #if !PLATFORM(CG) 79 // UInt8 is defined in CoreFoundation/CFBase.h 80 typedef unsigned char UInt8; 81 #endif 76 82 #endif 77 83 -
trunk/WebCore/platform/graphics/Image.h
r35731 r35852 49 49 #if PLATFORM(WIN) 50 50 typedef struct HBITMAP__ *HBITMAP; 51 #endif 52 53 #if PLATFORM(SKIA) 54 class NativeImageSkia; 51 55 #endif 52 56 -
trunk/WebCore/platform/graphics/ImageBuffer.h
r35731 r35852 33 33 #include <wtf/PassRefPtr.h> 34 34 #include <memory> 35 36 #if PLATFORM(SKIA) 37 class SkBitmap; 38 #endif 35 39 36 40 namespace WebCore { … … 76 80 ImageBuffer(cairo_surface_t*); 77 81 mutable cairo_surface_t* m_surface; 82 #elif PLATFORM(SKIA) 83 ImageBuffer(const IntSize&); 78 84 #endif 79 85 }; -
trunk/WebCore/platform/graphics/ImageSource.h
r35761 r35852 44 44 struct _cairo_surface; 45 45 typedef struct _cairo_surface cairo_surface_t; 46 #elif PLATFORM(SKIA) 47 class NativeImageSkia; 46 48 #endif 47 49 … … 63 65 typedef ImageDecoderQt* NativeImageSourcePtr; 64 66 typedef QPixmap* NativeImagePtr; 65 #el se67 #elif PLATFORM(CAIRO) 66 68 class ImageDecoder; 67 69 typedef ImageDecoder* NativeImageSourcePtr; 68 70 typedef cairo_surface_t* NativeImagePtr; 71 #elif PLATFORM(SKIA) 72 class ImageDecoder; 73 typedef ImageDecoder* NativeImageSourcePtr; 74 typedef NativeImageSkia* NativeImagePtr; 69 75 #endif 70 76 -
trunk/WebCore/platform/graphics/IntPoint.h
r31899 r35852 60 60 #endif 61 61 62 #if PLATFORM(SKIA) 63 struct SkPoint; 64 struct SkIPoint; 65 #endif 66 62 67 namespace WebCore { 63 68 … … 107 112 #endif 108 113 114 #if PLATFORM(SKIA) 115 IntPoint(const SkIPoint&); 116 operator SkIPoint() const; 117 operator SkPoint() const; 118 #endif 119 109 120 private: 110 121 int m_x, m_y; -
trunk/WebCore/platform/graphics/IntRect.h
r31899 r35852 59 59 #endif 60 60 61 #if PLATFORM(SKIA) 62 struct SkRect; 63 struct SkIRect; 64 #endif 65 61 66 namespace WebCore { 62 67 … … 154 159 #endif 155 160 161 #if PLATFORM(SKIA) 162 IntRect(const SkIRect&); 163 operator SkRect() const; 164 operator SkIRect() const; 165 #endif 166 156 167 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 157 168 operator NSRect() const; -
trunk/WebCore/platform/graphics/Path.h
r31899 r35852 44 44 } 45 45 typedef WebCore::CairoPath PlatformPath; 46 #elif PLATFORM(SKIA) 47 class SkPath; 48 typedef SkPath PlatformPath; 46 49 #else 47 50 typedef void PlatformPath; -
trunk/WebCore/platform/graphics/Pattern.h
r35759 r35852 37 37 #include <cairo.h> 38 38 typedef cairo_pattern_t* PlatformPatternPtr; 39 #elif PLATFORM(SKIA) 40 class SkShader; 41 typedef SkShader* PlatformPatternPtr; 39 42 #elif PLATFORM(QT) 40 43 #include <QBrush> -
trunk/WebCore/svg/graphics/SVGPaintServerPattern.h
r30430 r35852 63 63 virtual TextStream& externalRepresentation(TextStream&) const; 64 64 65 virtual bool setup(GraphicsContext*&, const RenderObject*, SVGPaintTargetType, bool isPaintingText) const; 65 66 #if PLATFORM(CG) 66 virtual bool setup(GraphicsContext*&, const RenderObject*, SVGPaintTargetType, bool isPaintingText) const; 67 virtual void teardown(GraphicsContext*&, const RenderObject*, SVGPaintTargetType, bool isPaintingText) const; 68 #endif 69 70 #if PLATFORM(QT) || PLATFORM(CAIRO) 71 virtual bool setup(GraphicsContext*&, const RenderObject*, SVGPaintTargetType, bool isPaintingText) const; 67 virtual void teardown(GraphicsContext*&, const RenderObject*, SVGPaintTargetType, bool isPaintingText) const; 72 68 #endif 73 69 -
trunk/WebCore/svg/graphics/SVGPaintServerSolid.h
r30430 r35852 46 46 virtual TextStream& externalRepresentation(TextStream&) const; 47 47 48 #if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(CAIRO)49 48 virtual bool setup(GraphicsContext*&, const RenderObject*, SVGPaintTargetType, bool isPaintingText) const; 50 #endif51 49 52 50 private: