diff options
author | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 17:23:57 +0000 |
---|---|---|
committer | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 17:23:57 +0000 |
commit | 53e7aab17f5d57ef3419ba70632caf65de52cda3 (patch) | |
tree | 90f5f3dfb8687b7671a62ea7b9a83f4e12a2b25c /o3d/gpu_plugin/gpu_plugin.gyp | |
parent | 0ec5ff993e5b3f90d84e8dee2d5b90590482737a (diff) | |
download | chromium_src-53e7aab17f5d57ef3419ba70632caf65de52cda3.zip chromium_src-53e7aab17f5d57ef3419ba70632caf65de52cda3.tar.gz chromium_src-53e7aab17f5d57ef3419ba70632caf65de52cda3.tar.bz2 |
Implemented shared memory as an NPObject. Using NPObject method to expose mapping function rather than NPAPI change.
Note that shared memory objects currently lose identity when they cross a process boundary. If an object is sent across a boundary and back, there are now two objects representing the same handle in a single process. This can be fixed.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/194049
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25749 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/gpu_plugin/gpu_plugin.gyp')
-rw-r--r-- | o3d/gpu_plugin/gpu_plugin.gyp | 118 |
1 files changed, 97 insertions, 21 deletions
diff --git a/o3d/gpu_plugin/gpu_plugin.gyp b/o3d/gpu_plugin/gpu_plugin.gyp index a466e12..908cc99 100644 --- a/o3d/gpu_plugin/gpu_plugin.gyp +++ b/o3d/gpu_plugin/gpu_plugin.gyp @@ -8,7 +8,7 @@ ], 'targets': [ { - 'target_name': 'gpu_plugin', + 'target_name': 'np_utils', 'type': '<(library)', 'dependencies': [ '../../base/base.gyp:base', @@ -18,30 +18,115 @@ '../../third_party/npapi', ], 'sources': [ - 'command_buffer.cc', - 'command_buffer.h', - 'gpu_plugin.cc', - 'gpu_plugin.h', - 'gpu_plugin_object.cc', - 'gpu_plugin_object.h', - 'gpu_plugin_object_win.cc', - 'gpu_plugin_object_factory.cc', - 'gpu_plugin_object_factory.h', 'np_utils/default_np_object.h', 'np_utils/dynamic_np_object.cc', 'np_utils/dynamic_np_object.h', 'np_utils/np_browser.cc', 'np_utils/np_browser.h', + 'np_utils/np_browser_mock.h', + 'np_utils/np_browser_stub.cc', + 'np_utils/np_browser_stub.h', 'np_utils/np_class.h', 'np_utils/np_dispatcher.cc', 'np_utils/np_dispatcher.h', 'np_utils/np_dispatcher_specializations.h', + 'np_utils/np_object_mock.h', 'np_utils/np_object_pointer.h', 'np_utils/np_plugin_object.h', 'np_utils/np_plugin_object_factory.cc', 'np_utils/np_plugin_object_factory.h', + 'np_utils/np_plugin_object_factory_mock.h', + 'np_utils/np_plugin_object_mock.h', 'np_utils/np_utils.cc', 'np_utils/np_utils.h', + 'np_utils/webkit_browser.h', + ], + }, + + # This is a standalone executable until O3D is fully moved over to using + # gyp. At that point these can become part of the regular O3D unit tests. + { + 'target_name': 'np_utils_unittests', + 'type': 'executable', + 'dependencies': [ + 'gpu_plugin', + '../../testing/gmock.gyp:gmock', + '../../testing/gmock.gyp:gmockmain', + '../../testing/gtest.gyp:gtest', + ], + 'include_dirs': [ + '../..', + '../../third_party/npapi', + ], + 'sources': [ + 'np_utils/dispatched_np_object_unittest.cc', + 'np_utils/dynamic_np_object_unittest.cc', + 'np_utils/np_class_unittest.cc', + 'np_utils/np_object_pointer_unittest.cc', + 'np_utils/np_utils_unittest.cc', + ], + }, + + { + 'target_name': 'system_services', + 'type': '<(library)', + 'dependencies': [ + '../../base/base.gyp:base', + 'np_utils', + ], + 'include_dirs': [ + '../..', + '../../third_party/npapi', + ], + 'sources': [ + 'system_services/shared_memory.cc', + 'system_services/shared_memory.h', + 'system_services/shared_memory_mock.h', + 'system_services/shared_memory_public.h', + ], + }, + + # This is a standalone executable until O3D is fully moved over to using + # gyp. At that point these can become part of the regular O3D unit tests. + { + 'target_name': 'system_services_unittests', + 'type': 'executable', + 'dependencies': [ + 'system_services', + '../../testing/gmock.gyp:gmock', + '../../testing/gmock.gyp:gmockmain', + '../../testing/gtest.gyp:gtest', + ], + 'include_dirs': [ + '../..', + '../../third_party/npapi', + ], + 'sources': [ + 'system_services/shared_memory_unittest.cc', + ], + }, + + { + 'target_name': 'gpu_plugin', + 'type': '<(library)', + 'dependencies': [ + '../../base/base.gyp:base', + 'np_utils', + ], + 'include_dirs': [ + '../..', + '../../third_party/npapi', + ], + 'sources': [ + 'command_buffer.cc', + 'command_buffer.h', + 'gpu_plugin.cc', + 'gpu_plugin.h', + 'gpu_plugin_object.cc', + 'gpu_plugin_object.h', + 'gpu_plugin_object_win.cc', + 'gpu_plugin_object_factory.cc', + 'gpu_plugin_object_factory.h', ], }, @@ -52,6 +137,8 @@ 'type': 'executable', 'dependencies': [ 'gpu_plugin', + 'np_utils', + 'system_services', '../../testing/gmock.gyp:gmock', '../../testing/gmock.gyp:gmockmain', '../../testing/gtest.gyp:gtest', @@ -66,17 +153,6 @@ 'gpu_plugin_unittest.cc', 'gpu_plugin_object_unittest.cc', 'gpu_plugin_object_factory_unittest.cc', - 'np_utils/dispatched_np_object_unittest.cc', - 'np_utils/dynamic_np_object_unittest.cc', - 'np_utils/np_browser_mock.h', - 'np_utils/np_browser_stub.cc', - 'np_utils/np_browser_stub.h', - 'np_utils/np_class_unittest.cc', - 'np_utils/np_object_mock.h', - 'np_utils/np_object_pointer_unittest.cc', - 'np_utils/np_plugin_object_factory_mock.h', - 'np_utils/np_plugin_object_mock.h', - 'np_utils/np_utils_unittest.cc', ], }, ] |