Changeset 125143 in webkit
- Timestamp:
- Aug 8, 2012 7:35:43 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r125142 r125143 1 2012-08-08 Huang Dongsung <luxtella@company100.net> 2 3 Extract the definition of NativeImagePtr from ImageSource.h into NativeImagePtr.h. 4 https://bugs.webkit.org/show_bug.cgi?id=93466 5 6 Reviewed by Adam Barth. 7 8 Image.h includes ImageSource.h in order to know the definition of NativeImagePtr. 9 But Image does not need to know the definition of ImageSource. So, this patch 10 extracts the definition of NativeImagePtr from ImageSource.h into NativeImagePtr.h. 11 12 This is a preparation for asynchronous image decoding. Async decoding 13 will need a callback function, which sends a NativeImagePtr to clients, and the 14 callback must know the definition of NativeImagePtr, not ImageSource. 15 16 No new tests, behavior is unchanged. 17 18 * GNUmakefile.list.am: 19 * Target.pri: 20 * WebCore.gypi: 21 * WebCore.vcproj/WebCore.vcproj: 22 * WebCore.xcodeproj/project.pbxproj: 23 * platform/graphics/BitmapImage.h: 24 * platform/graphics/Image.h: 25 * platform/graphics/ImageSource.h: 26 (WebCore): 27 * platform/graphics/NativeImagePtr.h: Added. 28 (WebCore): 29 1 30 2012-08-08 Shane Stephens <shanestephens@google.com> 2 31 -
trunk/Source/WebCore/GNUmakefile.list.am
r125042 r125143 3242 3242 Source/WebCore/platform/graphics/DashArray.h \ 3243 3243 Source/WebCore/platform/graphics/Extensions3D.h \ 3244 Source/WebCore/platform/graphics/NativeImagePtr.h \ 3244 3245 Source/WebCore/platform/graphics/cairo/BitmapImageCairo.cpp \ 3245 3246 Source/WebCore/platform/graphics/cairo/CairoUtilities.cpp \ -
trunk/Source/WebCore/Target.pri
r125042 r125143 2087 2087 platform/graphics/IntRect.h \ 2088 2088 platform/graphics/MediaPlayer.h \ 2089 platform/graphics/NativeImagePtr.h \ 2089 2090 platform/graphics/opentype/OpenTypeVerticalData.h \ 2090 2091 platform/graphics/Path.h \ -
trunk/Source/WebCore/WebCore.gypi
r125061 r125143 3533 3533 'platform/graphics/MediaPlayer.cpp', 3534 3534 'platform/graphics/MediaPlayerPrivate.h', 3535 'platform/graphics/NativeImagePtr.h' , 3535 3536 'platform/graphics/Path.cpp', 3536 3537 'platform/graphics/PathTraversalState.cpp', -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r125025 r125143 29551 29551 </File> 29552 29552 <File 29553 RelativePath="..\platform\graphics\NativeImagePtr.h" 29554 > 29555 </File> 29556 <File 29553 29557 RelativePath="..\platform\graphics\Path.cpp" 29554 29558 > -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r125074 r125143 1430 1430 4B3480930EEF50D400AC1B41 /* ImageSourceCGMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4B3480910EEF50D400AC1B41 /* ImageSourceCGMac.mm */; }; 1431 1431 4B3480940EEF50D400AC1B41 /* ImageSourceCG.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B3480920EEF50D400AC1B41 /* ImageSourceCG.h */; }; 1432 6B3480940EEF50D400AC1B41 /* NativeImagePtr.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B3480920EEF50D400AC1B41 /* NativeImagePtr.h */; }; 1432 1433 4B6FA6F40C39E48C00087011 /* SmartReplace.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B6FA6F20C39E48C00087011 /* SmartReplace.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1433 1434 4B6FA6F50C39E48C00087011 /* SmartReplace.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B6FA6F30C39E48C00087011 /* SmartReplace.cpp */; }; … … 8560 8561 4B3480910EEF50D400AC1B41 /* ImageSourceCGMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ImageSourceCGMac.mm; sourceTree = "<group>"; }; 8561 8562 4B3480920EEF50D400AC1B41 /* ImageSourceCG.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ImageSourceCG.h; sourceTree = "<group>"; }; 8563 6B3480920EEF50D400AC1B41 /* NativeImagePtr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NativeImagePtr.h; sourceTree = "<group>"; }; 8562 8564 4B6FA6F20C39E48C00087011 /* SmartReplace.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SmartReplace.h; sourceTree = "<group>"; }; 8563 8565 4B6FA6F30C39E48C00087011 /* SmartReplace.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SmartReplace.cpp; sourceTree = "<group>"; }; … … 19674 19676 B27535330B053814002CE64F /* IntRectCG.cpp */, 19675 19677 B27535340B053814002CE64F /* IntSizeCG.cpp */, 19678 6B3480920EEF50D400AC1B41 /* NativeImagePtr.h */, 19676 19679 B27535350B053814002CE64F /* PathCG.cpp */, 19677 19680 A80A38FD0E50CC8200A25EBC /* PatternCG.cpp */, … … 24327 24330 A81872230977D3C0005826D9 /* NamedNodeMap.h in Headers */, 24328 24331 A818721E0977D3C0005826D9 /* NameNodeList.h in Headers */, 24332 6B3480940EEF50D400AC1B41 /* NativeImagePtr.h in Headers */, 24329 24333 E10B9B6C0B747599003ED890 /* NativeXPathNSResolver.h in Headers */, 24330 24334 93CCF0270AF6C52900018E89 /* NavigationAction.h in Headers */, -
trunk/Source/WebCore/platform/graphics/BitmapImage.h
r122598 r125143 32 32 #include "Color.h" 33 33 #include "ImageOrientation.h" 34 #include "ImageSource.h" 34 35 #include "IntSize.h" 35 36 -
trunk/Source/WebCore/platform/graphics/Image.h
r122720 r125143 31 31 #include "ColorSpace.h" 32 32 #include "GraphicsTypes.h" 33 #include "Image Source.h"33 #include "ImageOrientation.h" 34 34 #include "IntRect.h" 35 #include "NativeImagePtr.h" 35 36 #include <wtf/PassRefPtr.h> 36 37 #include <wtf/RefCounted.h> -
trunk/Source/WebCore/platform/graphics/ImageSource.h
r122726 r125143 29 29 30 30 #include "ImageOrientation.h" 31 #include "NativeImagePtr.h" 31 32 32 33 #include <wtf/Forward.h> … … 34 35 #include <wtf/Vector.h> 35 36 36 #if PLATFORM(WX) 37 class wxBitmap; 38 class wxGraphicsBitmap; 39 #elif USE(CG) 37 #if USE(CG) 40 38 typedef struct CGImageSource* CGImageSourceRef; 41 typedef struct CGImage* CGImageRef;42 39 typedef const struct __CFData* CFDataRef; 43 #elif PLATFORM(QT)44 #include <qglobal.h>45 QT_BEGIN_NAMESPACE46 class QImage;47 QT_END_NAMESPACE48 #elif USE(CAIRO)49 #include "NativeImageCairo.h"50 #elif USE(SKIA)51 namespace WebCore {52 class NativeImageSkia;53 }54 #elif OS(WINCE)55 #include "SharedBitmap.h"56 40 #endif 57 41 … … 65 49 #if USE(CG) 66 50 typedef CGImageSourceRef NativeImageSourcePtr; 67 typedef CGImageRef NativeImagePtr;68 #elif PLATFORM(OPENVG)69 class ImageDecoder;70 class TiledImageOpenVG;71 typedef ImageDecoder* NativeImageSourcePtr;72 typedef TiledImageOpenVG* NativeImagePtr;73 51 #else 74 52 class ImageDecoder; 75 53 typedef ImageDecoder* NativeImageSourcePtr; 76 #if PLATFORM(WX)77 #if USE(WXGC)78 typedef wxGraphicsBitmap* NativeImagePtr;79 #else80 typedef wxBitmap* NativeImagePtr;81 #endif82 #elif USE(CAIRO)83 typedef WebCore::NativeImageCairo* NativeImagePtr;84 #elif USE(SKIA)85 typedef WebCore::NativeImageSkia* NativeImagePtr;86 #elif OS(WINCE)87 typedef RefPtr<SharedBitmap> NativeImagePtr;88 #elif PLATFORM(BLACKBERRY)89 class ImageDecoder;90 typedef ImageDecoder* NativeImageSourcePtr;91 typedef void* NativeImagePtr;92 #elif PLATFORM(QT)93 typedef QImage* NativeImagePtr;94 #endif95 54 #endif 96 55 -
trunk/Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp
r122250 r125143 34 34 #include "GraphicsContext3DPrivate.h" 35 35 #include "Image.h" 36 #include "ImageSource.h" 36 37 #include "NotImplemented.h" 37 38 #include "OpenGLShims.h"
Note: See TracChangeset
for help on using the changeset viewer.