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

Unified Diff: Source/platform/graphics/ImageBufferSurface.h

Issue 358893002: Use newImageSnapshot() to get an image from a Canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Correcting bugs and use new cache mechanism from SkImage Created 6 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
Index: Source/platform/graphics/ImageBufferSurface.h
diff --git a/Source/platform/graphics/ImageBufferSurface.h b/Source/platform/graphics/ImageBufferSurface.h
index dfef1ab4b67ee00ffb8e4140708f8951d64e3daf..556e5dc1f376795f322c3dca4c4e7e3ff941ec70 100644
--- a/Source/platform/graphics/ImageBufferSurface.h
+++ b/Source/platform/graphics/ImageBufferSurface.h
@@ -31,6 +31,7 @@
#ifndef ImageBufferSurface_h
#define ImageBufferSurface_h
+#include "Image.h"
Justin Novosad 2014/07/29 14:56:52 No need for this header.
Rémi Piotaix 2014/07/29 17:18:23 Done.
#include "platform/PlatformExport.h"
#include "platform/geometry/IntSize.h"
#include "platform/graphics/GraphicsTypes3D.h"
@@ -76,6 +77,8 @@ public:
virtual PassRefPtr<SkPicture> getPicture();
virtual void didClearCanvas() { }
+ virtual PassRefPtr<SkImage> newImageSnapshot() const { return nullptr; }
+
OpacityMode opacityMode() const { return m_opacityMode; }
const IntSize& size() const { return m_size; }
void notifyIsValidChanged(bool isValid) const;

Powered by Google App Engine
This is Rietveld 408576698