Index: Source/platform/graphics/Image.h |
diff --git a/Source/platform/graphics/Image.h b/Source/platform/graphics/Image.h |
index 706f15ca1331a95c072904b6bd04343637f0aea8..8608f5c3a3dab8b4ed51511804e6f27eb00b1712 100644 |
--- a/Source/platform/graphics/Image.h |
+++ b/Source/platform/graphics/Image.h |
@@ -33,6 +33,7 @@ |
#include "platform/graphics/GraphicsTypes.h" |
#include "platform/graphics/ImageOrientation.h" |
#include "platform/graphics/skia/NativeImageSkia.h" |
+#include "third_party/skia/include/core/SkImage.h" |
#include "third_party/skia/include/core/SkXfermode.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefCounted.h" |
@@ -68,6 +69,8 @@ public: |
virtual bool isBitmapImage() const { return false; } |
virtual bool currentFrameKnownToBeOpaque() = 0; |
+ virtual PassRefPtr<SkImage> image() { return nullptr; } |
+ |
// Derived classes should override this if they can assure that the current |
// image frame contains only resources from its own security origin. |
virtual bool currentFrameHasSingleSecurityOrigin() const { return false; } |