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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 class SkMatrix; | 50 class SkMatrix; |
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 Image; | 58 class Image; |
59 | 59 |
60 class PLATFORM_EXPORT Image : public ThreadSafeRefCounted<Image> { | 60 class PLATFORM_EXPORT Image : public RefCounted<Image> { |
61 friend class GeneratedImage; | 61 friend class GeneratedImage; |
62 friend class CrossfadeGeneratedImage; | 62 friend class CrossfadeGeneratedImage; |
63 friend class GradientGeneratedImage; | 63 friend class GradientGeneratedImage; |
64 friend class GraphicsContext; | 64 friend class GraphicsContext; |
65 WTF_MAKE_NONCOPYABLE(Image); | 65 WTF_MAKE_NONCOPYABLE(Image); |
66 | 66 |
67 public: | 67 public: |
68 virtual ~Image(); | 68 virtual ~Image(); |
69 | 69 |
70 static PassRefPtr<Image> LoadPlatformResource(const char* name); | 70 static PassRefPtr<Image> LoadPlatformResource(const char* name); |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 PaintImage::Id stable_image_id_; | 237 PaintImage::Id stable_image_id_; |
238 }; | 238 }; |
239 | 239 |
240 #define DEFINE_IMAGE_TYPE_CASTS(typeName) \ | 240 #define DEFINE_IMAGE_TYPE_CASTS(typeName) \ |
241 DEFINE_TYPE_CASTS(typeName, Image, image, image->Is##typeName(), \ | 241 DEFINE_TYPE_CASTS(typeName, Image, image, image->Is##typeName(), \ |
242 image.Is##typeName()) | 242 image.Is##typeName()) |
243 | 243 |
244 } // namespace blink | 244 } // namespace blink |
245 | 245 |
246 #endif | 246 #endif |
OLD | NEW |