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

Unified Diff: Source/platform/graphics/UnacceleratedImageBufferSurface.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: Corrections 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
« no previous file with comments | « Source/platform/graphics/UnacceleratedImageBufferSurface.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/UnacceleratedImageBufferSurface.cpp
diff --git a/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp b/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp
index c7696ce2fbb2ba4c653488bb552ad883a37ccb70..35ea4f7cd49b69cc1ee56f43d449cf600363dcaa 100644
--- a/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp
+++ b/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp
@@ -56,4 +56,9 @@ bool UnacceleratedImageBufferSurface::isValid() const
return m_surface;
}
+PassRefPtr<SkImage> UnacceleratedImageBufferSurface::newImageSnapshot() const
+{
+ return adoptRef(m_surface->newImageSnapshot());
+}
+
} // namespace blink
« no previous file with comments | « Source/platform/graphics/UnacceleratedImageBufferSurface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698