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/command_buffer.cc

Issue 196032: Replaced BaseNPObject with DefaultNPObject because...... (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
« no previous file with comments | « o3d/gpu_plugin/command_buffer.h ('k') | o3d/gpu_plugin/command_buffer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: o3d/gpu_plugin/command_buffer.cc
===================================================================
--- o3d/gpu_plugin/command_buffer.cc (revision 25348)
+++ o3d/gpu_plugin/command_buffer.cc (working copy)
@@ -7,12 +7,12 @@
namespace o3d {
namespace gpu_plugin {
-CommandBuffer::CommandBuffer(NPP npp) : DispatchedNPObject(npp) {
+CommandBuffer::CommandBuffer(NPP npp) : npp_(npp) {
}
CommandBuffer::~CommandBuffer() {
if (shared_memory_) {
- NPBrowser::get()->UnmapSharedMemory(npp(), shared_memory_);
+ NPBrowser::get()->UnmapSharedMemory(npp_, shared_memory_);
}
}
@@ -21,27 +21,27 @@
return false;
NPObjectPointer<NPObject> window = NPObjectPointer<NPObject>::FromReturned(
- NPBrowser::get()->GetWindowNPObject(npp()));
+ NPBrowser::get()->GetWindowNPObject(npp_));
if (!window.Get())
return false;
NPObjectPointer<NPObject> chromium;
- if (!NPGetProperty(npp(), window, "chromium", &chromium)) {
+ if (!NPGetProperty(npp_, window, "chromium", &chromium)) {
return false;
}
NPObjectPointer<NPObject> system;
- if (!NPGetProperty(npp(), chromium, "system", &system)) {
+ if (!NPGetProperty(npp_, chromium, "system", &system)) {
return false;
}
- if (!NPInvoke(npp(), system, "createSharedMemory", size,
+ if (!NPInvoke(npp_, system, "createSharedMemory", size,
&buffer_object_)) {
return false;
}
shared_memory_ = NPBrowser::get()->MapSharedMemory(
- npp(), buffer_object_.Get(), size, false);
+ npp_, buffer_object_.Get(), size, false);
if (!shared_memory_) {
buffer_object_ = NPObjectPointer<NPObject>();
return false;
« no previous file with comments | « o3d/gpu_plugin/command_buffer.h ('k') | o3d/gpu_plugin/command_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698