Skip to content
  • mrobinson@webkit.org's avatar
    [Cairo] Wrap cairo surfaces in a class when storing native images · 29d2ae86
    mrobinson@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=83611
    
    Reviewed by Alejandro G. Castro.
    
    Source/WebCore:
    
    No new tests. This is just a refactoring. This shouldn't change
    functionality.
    
    Added class that wraps Cairo images surfaces to serve as the "native image"
    type for the Cairo platform. This will allow the addition of caching resampled
    images as well as versions of the image for non-image Cairo backends. Also
    split out BitmapImageCairo.cpp from ImageCairo.cpp since these classes are
    defined in two headers.
    
    * GNUmakefile.list.am: Added new files.
    * platform/graphics/BitmapImage.h: Added a factory method that takes an image surface to
    reduce code churn.
    * platform/graphics/ImageSource.h: NativeImagePtr is now NativeImageCairo*.
    (WebCore):
    * platform/graphics/cairo/BitmapImageCairo.cpp: Copied from Source/WebCore/platform/graphics/cairo/ImageCairo.cpp.
    * platform/graphics/cairo/GraphicsContext3DCairo.cpp: Updated to reflect use of NativeImageCairo.
    * platform/graphics/cairo/ImageCairo.cpp: Ditto.
    * platform/graphics/cairo/NativeImageCairo.cpp: Added.
    * platform/graphics/cairo/NativeImageCairo.h: Added.
    * platform/graphics/cairo/PatternCairo.cpp: Updated to reflect use of NativeImageCairo.
    * platform/graphics/gtk/ImageGtk.cpp: Ditto.
    * platform/image-decoders/cairo/ImageDecoderCairo.cpp: Ditto.
    
    Source/WebKit/efl:
    
    * ewk/ewk_history.cpp: Updated to reflect addition of NativeImageCario.
    * ewk/ewk_settings.cpp: Ditto.
    
    Source/WebKit2:
    
    * Shared/gtk/ArgumentCodersGtk.cpp: Updated to reflect the addition of NativeImageCairo.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@115385 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    29d2ae86