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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_H_ 5 #ifndef O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_H_
6 #define O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_H_ 6 #define O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_H_
7 7
8 #include "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "o3d/gpu_plugin/np_utils/default_np_object.h" 9 #include "o3d/gpu_plugin/np_utils/default_np_object.h"
10 #include "o3d/gpu_plugin/np_utils/np_dispatcher.h" 10 #include "o3d/gpu_plugin/np_utils/np_dispatcher.h"
(...skipping 19 matching lines...) Expand all
30 virtual int32 GetSize() { 30 virtual int32 GetSize() {
31 return size; 31 return size;
32 } 32 }
33 33
34 virtual bool Map(); 34 virtual bool Map();
35 35
36 // This is a temporary function to allow me to drive the command buffer from 36 // This is a temporary function to allow me to drive the command buffer from
37 // JavaScript for the purposes of testing. 37 // JavaScript for the purposes of testing.
38 bool SetInt32(int32 offset, int32 value); 38 bool SetInt32(int32 offset, int32 value);
39 39
40 // This is a temporary function to allow me to drive the command buffer from
41 // JavaScript for the purposes of testing.
42 bool SetFloat(int32 offset, float value);
43
40 base::SharedMemory* shared_memory() const { 44 base::SharedMemory* shared_memory() const {
41 return shared_memory_; 45 return shared_memory_;
42 } 46 }
43 47
44 NP_UTILS_BEGIN_DISPATCHER_CHAIN(SharedMemory, DefaultNPObject<NPObject>) 48 NP_UTILS_BEGIN_DISPATCHER_CHAIN(SharedMemory, DefaultNPObject<NPObject>)
45 NP_UTILS_DISPATCHER(Initialize, bool(int32)); 49 NP_UTILS_DISPATCHER(Initialize, bool(int32 size));
46 NP_UTILS_DISPATCHER(GetSize, int32()) 50 NP_UTILS_DISPATCHER(GetSize, int32())
47 NP_UTILS_DISPATCHER(Map, bool()) 51 NP_UTILS_DISPATCHER(Map, bool())
48 NP_UTILS_DISPATCHER(SetInt32, bool(int32, int32)); 52 NP_UTILS_DISPATCHER(SetInt32, bool(int32 offset, int32 value));
53 NP_UTILS_DISPATCHER(SetFloat, bool(int32 offset, float value));
49 NP_UTILS_END_DISPATCHER_CHAIN 54 NP_UTILS_END_DISPATCHER_CHAIN
50 55
51 private: 56 private:
52 NPP npp_; 57 NPP npp_;
53 base::SharedMemory* shared_memory_; 58 base::SharedMemory* shared_memory_;
54 DISALLOW_COPY_AND_ASSIGN(SharedMemory); 59 DISALLOW_COPY_AND_ASSIGN(SharedMemory);
55 }; 60 };
56 61
57 } // namespace gpu_plugin 62 } // namespace gpu_plugin
58 } // namespace o3d 63 } // namespace o3d
59 64
60 #endif // O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_H_ 65 #endif // O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_H_
OLDNEW
« 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