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

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

Issue 367002: Added Pepper 3D render context that instantiates the GPU plugin.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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_plugin/gpu_plugin.h ('k') | third_party/npapi/bindings/npapi_extensions.h » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "webkit/glue/plugins/nphostapi.h" 6 #include "webkit/glue/plugins/nphostapi.h"
7 7
8 namespace gpu_plugin { 8 namespace gpu_plugin {
9 9
10 // Definitions of NPAPI plugin entry points. 10 // Definitions of NPAPI plugin entry points.
(...skipping 29 matching lines...) Expand all
40 return NPERR_INVALID_INSTANCE_ERROR; 40 return NPERR_INVALID_INSTANCE_ERROR;
41 41
42 return NPERR_GENERIC_ERROR; 42 return NPERR_GENERIC_ERROR;
43 } 43 }
44 44
45 NPError NPP_SetValue(NPP instance, NPNVariable variable, void *value) { 45 NPError NPP_SetValue(NPP instance, NPNVariable variable, void *value) {
46 return NPERR_NO_ERROR; 46 return NPERR_NO_ERROR;
47 } 47 }
48 } 48 }
49 49
50 NPError NP_GetEntryPoints(NPPluginFuncs* funcs) { 50 NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* funcs) {
51 funcs->newp = NPP_New; 51 funcs->newp = NPP_New;
52 funcs->destroy = NPP_Destroy; 52 funcs->destroy = NPP_Destroy;
53 funcs->setwindow = NPP_SetWindow; 53 funcs->setwindow = NPP_SetWindow;
54 funcs->event = NPP_HandleEvent; 54 funcs->event = NPP_HandleEvent;
55 funcs->getvalue = NPP_GetValue; 55 funcs->getvalue = NPP_GetValue;
56 funcs->setvalue = NPP_SetValue; 56 funcs->setvalue = NPP_SetValue;
57 return NPERR_NO_ERROR; 57 return NPERR_NO_ERROR;
58 } 58 }
59 59
60 #if defined(OS_LINUX) 60 #if defined(OS_LINUX)
61 NPError API_CALL NP_Initialize(NPNetscapeFuncs *browser_funcs, 61 NPError API_CALL NP_Initialize(NPNetscapeFuncs *browser_funcs,
62 NPPluginFuncs* plugin_funcs) { 62 NPPluginFuncs* plugin_funcs) {
63 #else 63 #else
64 NPError NP_Initialize(NPNetscapeFuncs *browser_funcs) { 64 NPError API_CALL NP_Initialize(NPNetscapeFuncs *browser_funcs) {
65 #endif 65 #endif
66 if (!browser_funcs) 66 if (!browser_funcs)
67 return NPERR_INVALID_FUNCTABLE_ERROR; 67 return NPERR_INVALID_FUNCTABLE_ERROR;
68 68
69 #if defined(OS_LINUX) 69 #if defined(OS_LINUX)
70 NP_GetEntryPoints(plugin_funcs); 70 NP_GetEntryPoints(plugin_funcs);
71 #endif 71 #endif
72 72
73 return NPERR_NO_ERROR; 73 return NPERR_NO_ERROR;
74 } 74 }
75 75
76 NPError NP_Shutdown() { 76 NPError API_CALL NP_Shutdown() {
77 return NPERR_NO_ERROR; 77 return NPERR_NO_ERROR;
78 } 78 }
79 } // namespace gpu_plugin 79 } // namespace gpu_plugin
OLDNEW
« no previous file with comments | « gpu/gpu_plugin/gpu_plugin.h ('k') | third_party/npapi/bindings/npapi_extensions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698