OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "webkit/glue/plugins/webplugin_3d_device_delegate.h" |
| 6 |
| 7 namespace webkit_glue { |
| 8 |
| 9 NPError WebPlugin3DDeviceDelegate::Device3DQueryCapability(int32 capability, |
| 10 int32* value) { |
| 11 return NPERR_GENERIC_ERROR; |
| 12 } |
| 13 |
| 14 NPError WebPlugin3DDeviceDelegate::Device3DQueryConfig( |
| 15 const NPDeviceContext3DConfig* request, |
| 16 NPDeviceContext3DConfig* obtain) { |
| 17 return NPERR_GENERIC_ERROR; |
| 18 } |
| 19 |
| 20 NPError WebPlugin3DDeviceDelegate::Device3DInitializeContext( |
| 21 const NPDeviceContext3DConfig* config, |
| 22 NPDeviceContext3D* context) { |
| 23 return NPERR_GENERIC_ERROR; |
| 24 } |
| 25 |
| 26 NPError WebPlugin3DDeviceDelegate::Device3DSetStateContext( |
| 27 NPDeviceContext3D* context, |
| 28 int32 state, |
| 29 intptr_t value) { |
| 30 return NPERR_GENERIC_ERROR; |
| 31 } |
| 32 |
| 33 NPError WebPlugin3DDeviceDelegate::Device3DGetStateContext( |
| 34 NPDeviceContext3D* context, |
| 35 int32 state, |
| 36 intptr_t* value) { |
| 37 return NPERR_GENERIC_ERROR; |
| 38 } |
| 39 |
| 40 NPError WebPlugin3DDeviceDelegate::Device3DFlushContext( |
| 41 NPP id, |
| 42 NPDeviceContext3D* context, |
| 43 NPDeviceFlushContextCallbackPtr callback, |
| 44 void* user_data) { |
| 45 return NPERR_GENERIC_ERROR; |
| 46 } |
| 47 |
| 48 NPError WebPlugin3DDeviceDelegate::Device3DDestroyContext( |
| 49 NPDeviceContext3D* context) { |
| 50 return NPERR_GENERIC_ERROR; |
| 51 } |
| 52 |
| 53 NPError WebPlugin3DDeviceDelegate::Device3DCreateBuffer(NPDeviceContext3D* conte
xt, |
| 54 size_t size, |
| 55 int32* id) { |
| 56 return NPERR_GENERIC_ERROR; |
| 57 } |
| 58 |
| 59 NPError WebPlugin3DDeviceDelegate::Device3DDestroyBuffer( |
| 60 NPDeviceContext3D* context, |
| 61 int32 id) { |
| 62 return NPERR_GENERIC_ERROR; |
| 63 } |
| 64 |
| 65 NPError WebPlugin3DDeviceDelegate::Device3DMapBuffer(NPDeviceContext3D* context, |
| 66 int32 id, |
| 67 NPDeviceBuffer* buffer) { |
| 68 return NPERR_GENERIC_ERROR; |
| 69 } |
| 70 |
| 71 NPError WebPlugin3DDeviceDelegate::Device3DGetNumConfigs(int32* num_configs) { |
| 72 return NPERR_GENERIC_ERROR; |
| 73 } |
| 74 |
| 75 NPError WebPlugin3DDeviceDelegate::Device3DGetConfigAttribs( |
| 76 int32 config, |
| 77 int32* attrib_list) { |
| 78 return NPERR_GENERIC_ERROR; |
| 79 } |
| 80 |
| 81 NPError WebPlugin3DDeviceDelegate::Device3DCreateContext( |
| 82 int32 config, |
| 83 const int32* attrib_list, |
| 84 NPDeviceContext3D** context) { |
| 85 return NPERR_GENERIC_ERROR; |
| 86 } |
| 87 |
| 88 NPError WebPlugin3DDeviceDelegate::Device3DRegisterCallback( |
| 89 NPP id, |
| 90 NPDeviceContext* context, |
| 91 int32 callback_type, |
| 92 NPDeviceGenericCallbackPtr callback, |
| 93 void* callback_data) { |
| 94 return NPERR_GENERIC_ERROR; |
| 95 } |
| 96 |
| 97 NPError WebPlugin3DDeviceDelegate::Device3DSynchronizeContext( |
| 98 NPP id, |
| 99 NPDeviceContext3D* context, |
| 100 NPDeviceSynchronizationMode mode, |
| 101 const int32* input_attrib_list, |
| 102 int32* output_attrib_list, |
| 103 NPDeviceSynchronizeContextCallbackPtr callback, |
| 104 void* callback_data) { |
| 105 return NPERR_GENERIC_ERROR; |
| 106 } |
| 107 |
| 108 |
| 109 } // namespace webkit_glue |
| 110 |
OLD | NEW |