Changeset 125203 in webkit
- Timestamp:
- Aug 9, 2012 2:25:32 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r125202 r125203 1 2012-08-09 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-09 Robert Hogan <robert@webkit.org> 2 31 -
trunk/Source/WebCore/GNUmakefile.list.am
r125145 r125203 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
r125145 r125203 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
r125201 r125203 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
r125201 r125203 29550 29550 > 29551 29551 </File> 29552 <File 29553 RelativePath="..\platform\graphics\NativeImagePtr.h" 29554 > 29555 </File> 29552 29556 <File 29553 29557 RelativePath="..\platform\graphics\Path.cpp" -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r125145 r125203 4827 4827 B27535750B053814002CE64F /* IntSize.h in Headers */ = {isa = PBXBuildFile; fileRef = B27535470B053814002CE64F /* IntSize.h */; settings = {ATTRIBUTES = (Private, ); }; }; 4828 4828 B27535760B053814002CE64F /* IntSizeHash.h in Headers */ = {isa = PBXBuildFile; fileRef = B27535480B053814002CE64F /* IntSizeHash.h */; settings = {ATTRIBUTES = (Private, ); }; }; 4829 6B3480940EEF50D400AC1B41 /* NativeImagePtr.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B3480920EEF50D400AC1B41 /* NativeImagePtr.h */; settings = {ATTRIBUTES = (Private, ); }; }; 4829 4830 B27535770B053814002CE64F /* ColorMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = B275354A0B053814002CE64F /* ColorMac.mm */; }; 4830 4831 B27535780B053814002CE64F /* FloatPointMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = B275354B0B053814002CE64F /* FloatPointMac.mm */; }; … … 12064 12065 B27535470B053814002CE64F /* IntSize.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = IntSize.h; sourceTree = "<group>"; }; 12065 12066 B27535480B053814002CE64F /* IntSizeHash.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = IntSizeHash.h; sourceTree = "<group>"; }; 12067 6B3480920EEF50D400AC1B41 /* NativeImagePtr.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = NativeImagePtr.h; sourceTree = "<group>"; }; 12066 12068 B275354A0B053814002CE64F /* ColorMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = ColorMac.mm; sourceTree = "<group>"; }; 12067 12069 B275354B0B053814002CE64F /* FloatPointMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = FloatPointMac.mm; sourceTree = "<group>"; }; … … 19833 19835 E4B41E0D0CBF90BD00AF2ECE /* MediaPlayer.h */, 19834 19836 079F5E4B0F3BEBEA005E0782 /* MediaPlayerPrivate.h */, 19837 6B3480920EEF50D400AC1B41 /* NativeImagePtr.h */, 19835 19838 B27535520B053814002CE64F /* Path.cpp */, 19836 19839 B27535530B053814002CE64F /* Path.h */, … … 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
r125145 r125203 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
r125145 r125203 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
r125145 r125203 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
r125145 r125203 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.