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

Unified Diff: sky/engine/core/rendering/style/StyleImage.h

Issue 1228463002: Remove RenderImage (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/rendering/style/ShapeValue.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/style/StyleImage.h
diff --git a/sky/engine/core/rendering/style/StyleImage.h b/sky/engine/core/rendering/style/StyleImage.h
index 76ad1b230737a8fe04b91fdca98860821316103e..98a5a180e826afcf133f82ab051abfda042ab9fa 100644
--- a/sky/engine/core/rendering/style/StyleImage.h
+++ b/sky/engine/core/rendering/style/StyleImage.h
@@ -34,7 +34,6 @@
namespace blink {
-class ImageResource;
class CSSValue;
class RenderObject;
@@ -66,25 +65,18 @@ public:
virtual WrappedImagePtr data() const = 0;
virtual float imageScaleFactor() const { return 1; }
virtual bool knownToBeOpaque(const RenderObject*) const = 0;
- virtual ImageResource* cachedImage() const { return 0; }
- ALWAYS_INLINE bool isImageResource() const { return m_isImageResource; }
ALWAYS_INLINE bool isPendingImage() const { return m_isPendingImage; }
ALWAYS_INLINE bool isGeneratedImage() const { return m_isGeneratedImage; }
- ALWAYS_INLINE bool isImageResourceSet() const { return m_isImageResourceSet; }
protected:
StyleImage()
- : m_isImageResource(false)
- , m_isPendingImage(false)
+ : m_isPendingImage(false)
, m_isGeneratedImage(false)
- , m_isImageResourceSet(false)
{
}
- bool m_isImageResource:1;
bool m_isPendingImage:1;
bool m_isGeneratedImage:1;
- bool m_isImageResourceSet:1;
};
#define DEFINE_STYLE_IMAGE_TYPE_CASTS(thisType, function) \
« no previous file with comments | « sky/engine/core/rendering/style/ShapeValue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698