diff options
Diffstat (limited to 'WebCore/platform/graphics/Image.h')
-rw-r--r-- | WebCore/platform/graphics/Image.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/WebCore/platform/graphics/Image.h b/WebCore/platform/graphics/Image.h index cff8b22..294ddf6 100644 --- a/WebCore/platform/graphics/Image.h +++ b/WebCore/platform/graphics/Image.h @@ -31,9 +31,9 @@ #include "GraphicsTypes.h" #include "ImageSource.h" #include "IntRect.h" -#include <wtf/RefPtr.h> -#include <wtf/PassRefPtr.h> #include "SharedBuffer.h" +#include <wtf/PassRefPtr.h> +#include <wtf/RefPtr.h> #if PLATFORM(MAC) #ifdef __OBJC__ @@ -67,13 +67,13 @@ typedef struct _GdkPixbuf GdkPixbuf; namespace WebCore { -class TransformationMatrix; class FloatPoint; class FloatRect; class FloatSize; class GraphicsContext; class SharedBuffer; class String; +class TransformationMatrix; // This class gets notified when an image creates or destroys decoded frames and when it advances animation frames. class ImageObserver; @@ -81,6 +81,7 @@ class ImageObserver; class Image : public RefCounted<Image> { friend class GeneratedImage; friend class GraphicsContext; + public: virtual ~Image(); @@ -172,13 +173,8 @@ protected: virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const TransformationMatrix& patternTransform, const FloatPoint& phase, CompositeOperator, const FloatRect& destRect); -#if PLATFORM(CG) - // These are private to CG. Ideally they would be only in the .cpp file, but the callback requires access - // to the private function nativeImageForCurrentFrame() - static void drawPatternCallback(void* info, CGContext*); -#endif - -protected: + +private: RefPtr<SharedBuffer> m_data; // The encoded raw data for the image. ImageObserver* m_imageObserver; }; |