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

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

Issue 358893002: Use newImageSnapshot() to get an image from a Canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Again in StaticBitmapPattern Created 6 years, 3 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.cpp
diff --git a/Source/platform/graphics/ImageBufferSurface.cpp b/Source/platform/graphics/ImageBufferSurface.cpp
index 48e4b9734c3a3d7e4621b03b44e4fb4217be626d..038814f54a4b3e95155d4dcc69e7232acb6c3d10 100644
--- a/Source/platform/graphics/ImageBufferSurface.cpp
+++ b/Source/platform/graphics/ImageBufferSurface.cpp
@@ -35,6 +35,7 @@
#include "platform/graphics/ImageBuffer.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkDevice.h"
+#include "third_party/skia/include/core/SkImage.h"
#include "third_party/skia/include/core/SkPicture.h"
namespace blink {
@@ -46,6 +47,8 @@ ImageBufferSurface::ImageBufferSurface(const IntSize& size, OpacityMode opacityM
setIsHidden(false);
}
+ImageBufferSurface::~ImageBufferSurface() { }
+
PassRefPtr<SkPicture> ImageBufferSurface::getPicture()
{
return nullptr;
@@ -78,4 +81,9 @@ const SkBitmap& ImageBufferSurface::cachedBitmap() const
return nullBitmap;
}
+PassRefPtr<SkImage> ImageBufferSurface::newImageSnapshot() const
+{
+ return nullptr;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698