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

Unified Diff: o3d/gpu_plugin/gpu_plugin_object.cc

Issue 194049: Implemented shared memory as an NPObject. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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: o3d/gpu_plugin/gpu_plugin_object.cc
===================================================================
--- o3d/gpu_plugin/gpu_plugin_object.cc (revision 25632)
+++ o3d/gpu_plugin/gpu_plugin_object.cc (working copy)
@@ -20,8 +20,7 @@
GPUPluginObject::GPUPluginObject(NPP npp)
: npp_(npp),
- status_(CREATED),
- shared_memory_(NULL) {
+ status_(CREATED) {
memset(&window_, 0, sizeof(window_));
}
@@ -60,10 +59,6 @@
if (status_ != INITIALIZED)
return NPERR_GENERIC_ERROR;
- if (shared_memory_) {
- NPBrowser::get()->UnmapSharedMemory(npp_, shared_memory_);
- }
-
command_buffer_object_ = NPObjectPointer<CommandBuffer>();
status_ = DESTROYED;

Powered by Google App Engine
This is Rietveld 408576698