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 { |