Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/Image.h

Issue 2906763004: Make Image RefCounted
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698