Chromium Code Reviews

Unified Diff: Source/platform/graphics/ImageBuffer.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.
Jump to:
View side-by-side diff with in-line comments
Index: Source/platform/graphics/ImageBuffer.h
diff --git a/Source/platform/graphics/ImageBuffer.h b/Source/platform/graphics/ImageBuffer.h
index 3d94b32c4ddde4de4c775213a97fe69a4d99db21..84b5d3a216c2ffc5b65f67eb052d7b19491dd840 100644
--- a/Source/platform/graphics/ImageBuffer.h
+++ b/Source/platform/graphics/ImageBuffer.h
@@ -124,6 +124,8 @@ public:
void notifySurfaceInvalid();
void didPresent();
+ PassRefPtr<SkImage> newImageSnapshot() const;
+
private:
ImageBuffer(PassOwnPtr<ImageBufferSurface>);

Powered by Google App Engine