| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "platform/geometry/IntRect.h" | 32 #include "platform/geometry/IntRect.h" |
| 33 #include "platform/graphics/Color.h" | 33 #include "platform/graphics/Color.h" |
| 34 #include "platform/graphics/GraphicsTypes.h" | 34 #include "platform/graphics/GraphicsTypes.h" |
| 35 #include "platform/graphics/ImageAnimationPolicy.h" | 35 #include "platform/graphics/ImageAnimationPolicy.h" |
| 36 #include "platform/graphics/ImageObserver.h" | 36 #include "platform/graphics/ImageObserver.h" |
| 37 #include "platform/graphics/ImageOrientation.h" | 37 #include "platform/graphics/ImageOrientation.h" |
| 38 #include "third_party/skia/include/core/SkRefCnt.h" | 38 #include "third_party/skia/include/core/SkRefCnt.h" |
| 39 #include "wtf/Assertions.h" | 39 #include "wtf/Assertions.h" |
| 40 #include "wtf/Noncopyable.h" | 40 #include "wtf/Noncopyable.h" |
| 41 #include "wtf/PassRefPtr.h" | 41 #include "wtf/PassRefPtr.h" |
| 42 #include "wtf/RefCounted.h" | |
| 43 #include "wtf/RefPtr.h" | 42 #include "wtf/RefPtr.h" |
| 43 #include "wtf/ThreadSafeRefCounted.h" |
| 44 #include "wtf/text/WTFString.h" | 44 #include "wtf/text/WTFString.h" |
| 45 | 45 |
| 46 class SkBitmap; | 46 class SkBitmap; |
| 47 class SkCanvas; | 47 class SkCanvas; |
| 48 class SkImage; | 48 class SkImage; |
| 49 class SkMatrix; | 49 class SkMatrix; |
| 50 class SkPaint; | 50 class SkPaint; |
| 51 | 51 |
| 52 namespace blink { | 52 namespace blink { |
| 53 | 53 |
| 54 class FloatPoint; | 54 class FloatPoint; |
| 55 class FloatRect; | 55 class FloatRect; |
| 56 class FloatSize; | 56 class FloatSize; |
| 57 class GraphicsContext; | 57 class GraphicsContext; |
| 58 class Length; | 58 class Length; |
| 59 class Image; | 59 class Image; |
| 60 | 60 |
| 61 class PLATFORM_EXPORT Image : public RefCounted<Image> { | 61 class PLATFORM_EXPORT Image : public ThreadSafeRefCounted<Image> { |
| 62 friend class GeneratedImage; | 62 friend class GeneratedImage; |
| 63 friend class CrossfadeGeneratedImage; | 63 friend class CrossfadeGeneratedImage; |
| 64 friend class GradientGeneratedImage; | 64 friend class GradientGeneratedImage; |
| 65 friend class GraphicsContext; | 65 friend class GraphicsContext; |
| 66 WTF_MAKE_NONCOPYABLE(Image); | 66 WTF_MAKE_NONCOPYABLE(Image); |
| 67 | 67 |
| 68 public: | 68 public: |
| 69 virtual ~Image(); | 69 virtual ~Image(); |
| 70 | 70 |
| 71 static PassRefPtr<Image> loadPlatformResource(const char* name); | 71 static PassRefPtr<Image> loadPlatformResource(const char* name); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 UntracedMember<ImageObserver> m_imageObserver; | 186 UntracedMember<ImageObserver> m_imageObserver; |
| 187 bool m_imageObserverDisabled; | 187 bool m_imageObserverDisabled; |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 #define DEFINE_IMAGE_TYPE_CASTS(typeName) \ | 190 #define DEFINE_IMAGE_TYPE_CASTS(typeName) \ |
| 191 DEFINE_TYPE_CASTS(typeName, Image, image, image->is##typeName(), image.is##t
ypeName()) | 191 DEFINE_TYPE_CASTS(typeName, Image, image, image->is##typeName(), image.is##t
ypeName()) |
| 192 | 192 |
| 193 } // namespace blink | 193 } // namespace blink |
| 194 | 194 |
| 195 #endif | 195 #endif |
| OLD | NEW |