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 #include "o3d/gpu_plugin/gpu_plugin_object.h" | 5 #include "o3d/gpu_plugin/gpu_plugin_object.h" |
6 #include "o3d/gpu_plugin/gpu_plugin_object_factory.h" | 6 #include "o3d/gpu_plugin/gpu_plugin_object_factory.h" |
| 7 #include "o3d/gpu_plugin/np_utils/np_utils.h" |
7 | 8 |
8 namespace o3d { | 9 namespace o3d { |
9 namespace gpu_plugin { | 10 namespace gpu_plugin { |
10 | 11 |
11 GPUPluginObjectFactory::GPUPluginObjectFactory() { | 12 GPUPluginObjectFactory::GPUPluginObjectFactory() { |
12 } | 13 } |
13 | 14 |
14 GPUPluginObjectFactory::~GPUPluginObjectFactory() { | 15 GPUPluginObjectFactory::~GPUPluginObjectFactory() { |
15 } | 16 } |
16 | 17 |
17 PluginObject* GPUPluginObjectFactory::CreatePluginObject( | 18 PluginObject* GPUPluginObjectFactory::CreatePluginObject( |
18 NPP npp, | 19 NPP npp, |
19 NPMIMEType plugin_type) { | 20 NPMIMEType plugin_type) { |
20 if (strcmp(plugin_type, GPUPluginObject::kPluginType) == 0) { | 21 if (strcmp(plugin_type, GPUPluginObject::kPluginType) == 0) { |
21 return NPCreateObject<GPUPluginObject>(npp).ToReturned(); | 22 return NPCreateObject<GPUPluginObject>(npp).ToReturned(); |
22 } | 23 } |
23 | 24 |
24 return NULL; | 25 return NULL; |
25 } | 26 } |
26 | 27 |
27 } // namespace gpu_plugin | 28 } // namespace gpu_plugin |
28 } // namespace o3d | 29 } // namespace o3d |
OLD | NEW |