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

Side by Side Diff: sky/engine/platform/graphics/Image.h

Issue 752463002: Remove unused WebMIMERegistry (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/platform/MIMETypeRegistry.cpp ('k') | sky/engine/platform/graphics/Image.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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 class PLATFORM_EXPORT Image : public RefCounted<Image> { 55 class PLATFORM_EXPORT Image : public RefCounted<Image> {
56 friend class GeneratedImage; 56 friend class GeneratedImage;
57 friend class CrossfadeGeneratedImage; 57 friend class CrossfadeGeneratedImage;
58 friend class GradientGeneratedImage; 58 friend class GradientGeneratedImage;
59 friend class GraphicsContext; 59 friend class GraphicsContext;
60 60
61 public: 61 public:
62 virtual ~Image(); 62 virtual ~Image();
63 63
64 static PassRefPtr<Image> loadPlatformResource(const char* name); 64 static PassRefPtr<Image> loadPlatformResource(const char* name);
65 static bool supportsType(const String&);
66 65
67 virtual bool isBitmapImage() const { return false; } 66 virtual bool isBitmapImage() const { return false; }
68 virtual bool currentFrameKnownToBeOpaque() = 0; 67 virtual bool currentFrameKnownToBeOpaque() = 0;
69 68
70 static Image* nullImage(); 69 static Image* nullImage();
71 bool isNull() const { return size().isEmpty(); } 70 bool isNull() const { return size().isEmpty(); }
72 71
73 virtual void setContainerSize(const IntSize&) { } 72 virtual void setContainerSize(const IntSize&) { }
74 virtual bool usesContainerSize() const { return false; } 73 virtual bool usesContainerSize() const { return false; }
75 virtual bool hasRelativeWidth() const { return false; } 74 virtual bool hasRelativeWidth() const { return false; }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 RefPtr<SharedBuffer> m_encodedImageData; 138 RefPtr<SharedBuffer> m_encodedImageData;
140 ImageObserver* m_imageObserver; 139 ImageObserver* m_imageObserver;
141 }; 140 };
142 141
143 #define DEFINE_IMAGE_TYPE_CASTS(typeName) \ 142 #define DEFINE_IMAGE_TYPE_CASTS(typeName) \
144 DEFINE_TYPE_CASTS(typeName, Image, image, image->is##typeName(), image.is##t ypeName()) 143 DEFINE_TYPE_CASTS(typeName, Image, image, image->is##typeName(), image.is##t ypeName())
145 144
146 } // namespace blink 145 } // namespace blink
147 146
148 #endif 147 #endif
OLDNEW
« no previous file with comments | « sky/engine/platform/MIMETypeRegistry.cpp ('k') | sky/engine/platform/graphics/Image.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698