OLD | NEW |
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_GPU_PLUGIN_OBJECT_H_ | 5 #ifndef O3D_GPU_PLUGIN_GPU_PLUGIN_OBJECT_H_ |
6 #define O3D_GPU_PLUGIN_GPU_PLUGIN_OBJECT_H_ | 6 #define O3D_GPU_PLUGIN_GPU_PLUGIN_OBJECT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "o3d/gpu_plugin/command_buffer.h" | 10 #include "o3d/gpu_plugin/command_buffer.h" |
11 #include "o3d/gpu_plugin/np_utils/dispatched_np_object.h" | 11 #include "o3d/gpu_plugin/np_utils/default_np_object.h" |
12 #include "o3d/gpu_plugin/np_utils/np_dispatcher.h" | 12 #include "o3d/gpu_plugin/np_utils/np_dispatcher.h" |
13 #include "o3d/gpu_plugin/np_utils/np_plugin_object.h" | 13 #include "o3d/gpu_plugin/np_utils/np_plugin_object.h" |
14 #include "o3d/gpu_plugin/np_utils/np_utils.h" | 14 #include "o3d/gpu_plugin/np_utils/np_utils.h" |
15 #include "third_party/npapi/bindings/npapi.h" | 15 #include "third_party/npapi/bindings/npapi.h" |
16 #include "third_party/npapi/bindings/npruntime.h" | 16 #include "third_party/npapi/bindings/npruntime.h" |
17 | 17 |
18 namespace o3d { | 18 namespace o3d { |
19 namespace gpu_plugin { | 19 namespace gpu_plugin { |
20 | 20 |
21 // The scriptable object for the GPU plugin. | 21 // The scriptable object for the GPU plugin. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 enum Status { | 56 enum Status { |
57 CREATED, | 57 CREATED, |
58 INITIALIZED, | 58 INITIALIZED, |
59 DESTROYED, | 59 DESTROYED, |
60 }; | 60 }; |
61 | 61 |
62 NPP npp_; | 62 NPP npp_; |
63 Status status_; | 63 Status status_; |
64 NPWindow window_; | 64 NPWindow window_; |
65 NPObjectPointer<CommandBuffer> command_buffer_object_; | 65 NPObjectPointer<CommandBuffer> command_buffer_object_; |
66 NPSharedMemory* shared_memory_; | |
67 }; | 66 }; |
68 | 67 |
69 } // namespace gpu_plugin | 68 } // namespace gpu_plugin |
70 } // namespace o3d | 69 } // namespace o3d |
71 | 70 |
72 #endif // O3D_GPU_PLUGIN_GPU_PLUGIN_OBJECT_H_ | 71 #endif // O3D_GPU_PLUGIN_GPU_PLUGIN_OBJECT_H_ |
OLD | NEW |