Index: third_party/WebKit/Source/platform/graphics/ImageBuffer.h |
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.h b/third_party/WebKit/Source/platform/graphics/ImageBuffer.h |
index 8f3ad13276b2b821ef221d4c6169f7aba1b25a67..05bc3f884b09aab252ac760fb49f5c7c4369d75c 100644 |
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.h |
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.h |
@@ -37,6 +37,7 @@ |
#include "platform/graphics/ImageBufferSurface.h" |
#include "platform/transforms/AffineTransform.h" |
#include "third_party/skia/include/core/SkPaint.h" |
+#include "third_party/skia/include/core/SkPicture.h" |
#include "wtf/Forward.h" |
#include "wtf/OwnPtr.h" |
#include "wtf/PassOwnPtr.h" |
@@ -136,6 +137,8 @@ public: |
PassRefPtr<SkImage> newSkImageSnapshot(AccelerationHint, SnapshotReason) const; |
PassRefPtr<Image> newImageSnapshot(AccelerationHint = PreferNoAcceleration, SnapshotReason = SnapshotReasonUnknown) const; |
+ PassRefPtr<SkPicture> getPicture() { return m_surface->getPicture(); } |
+ |
void draw(GraphicsContext&, const FloatRect&, const FloatRect*, SkXfermode::Mode); |
void updateGPUMemoryUsage() const; |