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

Unified Diff: o3d/gpu_plugin/system_services/shared_memory.h

Issue 234001: GPUProcessor uses O3D command buffer service to render to a window.... (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/gpu_processor_win.cc ('k') | o3d/gpu_plugin/system_services/shared_memory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: o3d/gpu_plugin/system_services/shared_memory.h
===================================================================
--- o3d/gpu_plugin/system_services/shared_memory.h (revision 26879)
+++ o3d/gpu_plugin/system_services/shared_memory.h (working copy)
@@ -37,15 +37,20 @@
// JavaScript for the purposes of testing.
bool SetInt32(int32 offset, int32 value);
+ // This is a temporary function to allow me to drive the command buffer from
+ // JavaScript for the purposes of testing.
+ bool SetFloat(int32 offset, float value);
+
base::SharedMemory* shared_memory() const {
return shared_memory_;
}
NP_UTILS_BEGIN_DISPATCHER_CHAIN(SharedMemory, DefaultNPObject<NPObject>)
- NP_UTILS_DISPATCHER(Initialize, bool(int32));
+ NP_UTILS_DISPATCHER(Initialize, bool(int32 size));
NP_UTILS_DISPATCHER(GetSize, int32())
NP_UTILS_DISPATCHER(Map, bool())
- NP_UTILS_DISPATCHER(SetInt32, bool(int32, int32));
+ NP_UTILS_DISPATCHER(SetInt32, bool(int32 offset, int32 value));
+ NP_UTILS_DISPATCHER(SetFloat, bool(int32 offset, float value));
NP_UTILS_END_DISPATCHER_CHAIN
private:
« no previous file with comments | « o3d/gpu_plugin/gpu_processor_win.cc ('k') | o3d/gpu_plugin/system_services/shared_memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698