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

Unified Diff: chrome/renderer/pepper_plugin_delegate_impl.cc

Issue 4611001: Change the private image data shared memory handle code to return a native... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « no previous file | ppapi/c/trusted/ppb_image_data_trusted.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper_plugin_delegate_impl.cc
===================================================================
--- chrome/renderer/pepper_plugin_delegate_impl.cc (revision 65406)
+++ chrome/renderer/pepper_plugin_delegate_impl.cc (working copy)
@@ -65,8 +65,13 @@
return dib_->GetPlatformCanvas(width_, height_);
}
- virtual intptr_t GetSharedMemoryHandle() const {
- return reinterpret_cast<intptr_t>(dib_.get());
+ virtual intptr_t GetSharedMemoryHandle(uint32* byte_count) const {
+ *byte_count = dib_->size();
+#if defined(OS_WIN)
+ return reinterpret_cast<intptr_t>(dib_->handle());
+#else
+ return static_cast<intptr_t>(dib_->handle());
+#endif
}
virtual TransportDIB* GetTransportDIB() const {
« no previous file with comments | « no previous file | ppapi/c/trusted/ppb_image_data_trusted.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698