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

Side by Side Diff: gpu/gpu_plugin/gpu_plugin.cc

Issue 436017: Branched gpu process and command buffer code into Chrome tree. Fixed up paths... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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 | « gpu/gpu.gyp ('k') | gpu/gpu_plugin/gpu_plugin_object_unittest.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 #include "gpu/gpu_plugin/gpu_plugin.h" 5 #include "gpu/gpu_plugin/gpu_plugin.h"
6 #include "gpu/gpu_plugin/gpu_plugin_object_factory.h" 6 #include "gpu/gpu_plugin/gpu_plugin_object_factory.h"
7 #include "gpu/np_utils/np_browser.h" 7 #include "gpu/np_utils/np_browser.h"
8 #include "gpu/np_utils/np_plugin_object.h" 8 #include "gpu/np_utils/np_plugin_object.h"
9 #include "gpu/np_utils/np_plugin_object_factory.h" 9 #include "gpu/np_utils/np_plugin_object_factory.h"
10
11 #if defined(O3D_IN_CHROME)
12 #include "webkit/glue/plugins/nphostapi.h" 10 #include "webkit/glue/plugins/nphostapi.h"
13 #else
14 #include "o3d/third_party/npapi/include/npfunctions.h"
15 #endif
16 11
17 using np_utils::NPBrowser; 12 using np_utils::NPBrowser;
18 using np_utils::NPPluginObjectFactory; 13 using np_utils::NPPluginObjectFactory;
19 using np_utils::PluginObject; 14 using np_utils::PluginObject;
20 15
21 namespace gpu_plugin { 16 namespace gpu_plugin {
22 17
23 // Definitions of NPAPI plugin entry points. 18 // Definitions of NPAPI plugin entry points.
24 19
25 namespace { 20 namespace {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 NPError NP_Shutdown() { 126 NPError NP_Shutdown() {
132 if (!g_browser) 127 if (!g_browser)
133 return NPERR_GENERIC_ERROR; 128 return NPERR_GENERIC_ERROR;
134 129
135 delete g_browser; 130 delete g_browser;
136 g_browser = NULL; 131 g_browser = NULL;
137 132
138 return NPERR_NO_ERROR; 133 return NPERR_NO_ERROR;
139 } 134 }
140 } // namespace gpu_plugin 135 } // namespace gpu_plugin
OLDNEW
« no previous file with comments | « gpu/gpu.gyp ('k') | gpu/gpu_plugin/gpu_plugin_object_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698