Changeset 83818 in webkit
- Timestamp:
- Apr 13, 2011 11:25:57 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r83816 r83818 1 2011-04-13 Cary Clark <caryclark@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 [Chromium] allow concurrent Skia and CG datatypes 6 https://bugs.webkit.org/show_bug.cgi?id=57848 7 8 The Chromium port is experimenting with running Skia as the WebKit rendering engine, and CoreGraphics 9 as the UI rendering engine. This permits Chromium to unify its graphics story while leveraging OS X to 10 draw elements like scrollbars and buttons. 11 12 Restructure the common graphics units, points, and rectangles, to convert to Sk-types and CG-types at 13 the same time. This requires only adding to the existing preprocessor commands, and will have no effect 14 on any existing platform. 15 16 Eventually, WTF_USE_SKIA_ON_MAC_CHROME will be defined to enable this, but for now, there's no 17 functional change. 18 19 No new tests as this provides no new functionality. 20 21 * platform/graphics/FloatPoint.h: Add USE(SKIA_ON_MAC_CHROME) to make CG type and operators visible 22 to a Skia-based Chrome Mac build. 23 * platform/graphics/FloatRect.h: Ditto. 24 * platform/graphics/FloatSize.h: Ditto. 25 * platform/graphics/IntPoint.h: Ditto. 26 * platform/graphics/IntRect.h: Ditto. 27 * platform/graphics/IntSize.h: Ditto. 28 * platform/graphics/cg/FloatPointCG.cpp: Ditto. 29 * platform/graphics/cg/FloatRectCG.cpp: Ditto. 30 * platform/graphics/cg/FloatSizeCG.cpp: Ditto. 31 * platform/graphics/cg/IntPointCG.cpp: Ditto. 32 * platform/graphics/cg/IntRectCG.cpp: Ditto. 33 * platform/graphics/cg/IntSizeCG.cpp: Ditto. 34 1 35 2011-04-13 Roland Steiner <rolandsteiner@chromium.org> 2 36 -
trunk/Source/WebCore/platform/graphics/FloatPoint.h
r79578 r83818 32 32 #include <wtf/MathExtras.h> 33 33 34 #if PLATFORM(CG) 34 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 35 35 typedef struct CGPoint CGPoint; 36 36 #endif … … 110 110 } 111 111 112 #if PLATFORM(CG) 112 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 113 113 FloatPoint(const CGPoint&); 114 114 operator CGPoint() const; -
trunk/Source/WebCore/platform/graphics/FloatRect.h
r83075 r83818 30 30 #include "FloatPoint.h" 31 31 32 #if PLATFORM(CG) 32 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 33 33 typedef struct CGRect CGRect; 34 34 #endif … … 138 138 void fitToPoints(const FloatPoint& p0, const FloatPoint& p1, const FloatPoint& p2, const FloatPoint& p3); 139 139 140 #if PLATFORM(CG) 140 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 141 141 FloatRect(const CGRect&); 142 142 operator CGRect() const; -
trunk/Source/WebCore/platform/graphics/FloatSize.h
r83422 r83818 32 32 #include <wtf/MathExtras.h> 33 33 34 #if PLATFORM(CG) || (PLATFORM(WX) && OS(DARWIN)) 34 #if PLATFORM(CG) || (PLATFORM(WX) && OS(DARWIN)) || USE(SKIA_ON_MAC_CHROME) 35 35 typedef struct CGSize CGSize; 36 36 #endif … … 90 90 } 91 91 92 #if PLATFORM(CG) || (PLATFORM(WX) && OS(DARWIN)) 92 #if PLATFORM(CG) || (PLATFORM(WX) && OS(DARWIN)) || USE(SKIA_ON_MAC_CHROME) 93 93 explicit FloatSize(const CGSize&); // don't do this implicitly since it's lossy 94 94 operator CGSize() const; -
trunk/Source/WebCore/platform/graphics/IntPoint.h
r79578 r83818 33 33 #endif 34 34 35 #if PLATFORM(CG) 35 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 36 36 typedef struct CGPoint CGPoint; 37 37 #endif … … 115 115 } 116 116 117 #if PLATFORM(CG) 117 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 118 118 explicit IntPoint(const CGPoint&); // don't do this implicitly since it's lossy 119 119 operator CGPoint() const; -
trunk/Source/WebCore/platform/graphics/IntRect.h
r83075 r83818 30 30 #include <wtf/Vector.h> 31 31 32 #if PLATFORM(CG) 32 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 33 33 typedef struct CGRect CGRect; 34 34 #endif … … 184 184 #endif 185 185 186 #if PLATFORM(CG) 186 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 187 187 operator CGRect() const; 188 188 #endif … … 230 230 } 231 231 232 #if PLATFORM(CG) 232 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 233 233 IntRect enclosingIntRect(const CGRect&); 234 234 #endif -
trunk/Source/WebCore/platform/graphics/IntSize.h
r71700 r83818 27 27 #define IntSize_h 28 28 29 #if PLATFORM(CG) 29 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 30 30 typedef struct CGSize CGSize; 31 31 #endif … … 110 110 } 111 111 112 #if PLATFORM(CG) 112 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 113 113 explicit IntSize(const CGSize&); // don't do this implicitly since it's lossy 114 114 operator CGSize() const; -
trunk/Source/WebCore/platform/graphics/cg/FloatPointCG.cpp
r15999 r83818 28 28 #include "FloatPoint.h" 29 29 30 #if PLATFORM(CG) 30 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 31 31 32 32 #include <ApplicationServices/ApplicationServices.h> -
trunk/Source/WebCore/platform/graphics/cg/FloatRectCG.cpp
r15999 r83818 28 28 #include "FloatRect.h" 29 29 30 #if PLATFORM(CG) 30 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 31 31 32 32 #include <ApplicationServices/ApplicationServices.h> -
trunk/Source/WebCore/platform/graphics/cg/FloatSizeCG.cpp
r15999 r83818 28 28 #include "FloatSize.h" 29 29 30 #if PLATFORM(CG) 30 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 31 31 32 32 #include <ApplicationServices/ApplicationServices.h> -
trunk/Source/WebCore/platform/graphics/cg/IntPointCG.cpp
r15999 r83818 27 27 #include "IntPoint.h" 28 28 29 #if PLATFORM(CG) 29 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 30 30 31 31 #include <ApplicationServices/ApplicationServices.h> -
trunk/Source/WebCore/platform/graphics/cg/IntRectCG.cpp
r15999 r83818 27 27 #include "IntRect.h" 28 28 29 #if PLATFORM(CG) 29 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 30 30 31 31 #include <ApplicationServices/ApplicationServices.h> -
trunk/Source/WebCore/platform/graphics/cg/IntSizeCG.cpp
r15999 r83818 27 27 #include "IntSize.h" 28 28 29 #if PLATFORM(CG) 29 #if PLATFORM(CG) || USE(SKIA_ON_MAC_CHROME) 30 30 31 31 #include <ApplicationServices/ApplicationServices.h>
Note: See TracChangeset
for help on using the changeset viewer.